Browse Source

Securise QRCode

stany.ferer 2 năm trước cách đây
mục cha
commit
2ae1b3a55f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      core/views/pages/cms.user.php

+ 1 - 1
core/views/pages/cms.user.php

@@ -117,7 +117,7 @@ if(core::ifGet("add")) {
     </div>
     <br />
 
-    <?php if(isset($user["googleAuthenticator"]) AND $user["googleAuthenticator"] == 1) { ?>
+    <?php if(isset($user["googleAuthenticator"]) AND $user["googleAuthenticator"] == 1 AND $protect == 1) { ?>
         <div class="card text-center" style="width: 18rem;">
                 <?php
                     $qrCodeUrl = googleAuthenticator::getGoogleUrl("CMS CSE Invent: " . ENVIRONNEMENT,  user::getMyGoogleAuthenticator(session::getId()));