|
|
@@ -133,7 +133,7 @@ if(core::ifGet("add")) {
|
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
- <?php if(isset($user["googleAuthenticator"]) AND $user["googleAuthenticator"] == 1 AND $protect == 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()));
|
|
|
@@ -145,7 +145,7 @@ if(core::ifGet("add")) {
|
|
|
</div>
|
|
|
</div>
|
|
|
<br />
|
|
|
- <?php } ?>
|
|
|
+ <?php endif; ?>
|
|
|
|
|
|
<?php if($protect == 0): ?>
|
|
|
<div class="form-group">
|
|
|
@@ -156,13 +156,14 @@ if(core::ifGet("add")) {
|
|
|
</select>
|
|
|
</div>
|
|
|
<br />
|
|
|
+ <?php endif; ?>
|
|
|
|
|
|
- <?php if($protect == 1): ?>
|
|
|
- <input type="hidden" name="actif" value="<?php echo $user["actif"] ?>">
|
|
|
- <?php endif; ?>
|
|
|
-
|
|
|
- <input class="btn btn-primary btn-lg" style="width: 100%" type="submit" value="<?php echo $submit ?>">
|
|
|
+ <?php if($protect == 1): ?>
|
|
|
+ <input type="hidden" name="actif" value="<?php echo $user["actif"] ?>">
|
|
|
<?php endif; ?>
|
|
|
+
|
|
|
+ <input class="btn btn-primary btn-lg" style="width: 100%" type="submit" value="<?php echo $submit ?>">
|
|
|
+
|
|
|
<br />
|
|
|
<br />
|
|
|
|