|
|
|
|
117
|
<p>To enable it, add the secret key below to your 2FA client either manually or by scanning the QR code, then enter a verification code generated by your 2FA client and click the "Enable 2FA" button.</p>
|
117
|
<p>To enable it, add the secret key below to your 2FA client either manually or by scanning the QR code, then enter a verification code generated by your 2FA client and click the "Enable 2FA" button.</p>
|
118
|
<form method="post">
|
118
|
<form method="post">
|
119
|
<input type="text" size="60" name="twofasecret" id="twofasecret" value="<?=$TwoFASecret?>" readonly><br>
|
119
|
<input type="text" size="60" name="twofasecret" id="twofasecret" value="<?=$TwoFASecret?>" readonly><br>
|
120
|
- <img src="<?=$TwoFA->getQRCodeImageAsDataUri(SITE_NAME, $TwoFASecret)?>"><br>
|
|
|
|
|
120
|
+ <img src="<?=$TwoFA->getQRCodeImageAsDataUri(SITE_NAME.':'.$LoggedUser['Username'], $TwoFASecret)?>"><br>
|
121
|
<input type="text" size="20" maxlength="6" pattern="[0-9]{0,6}" name="twofa" id="twofa" placeholder="Verification Code" autocomplete="off"><br><br>
|
121
|
<input type="text" size="20" maxlength="6" pattern="[0-9]{0,6}" name="twofa" id="twofa" placeholder="Verification Code" autocomplete="off"><br><br>
|
122
|
<button type="submit" name="type" value="2FA-E">Enable 2FA</button>
|
122
|
<button type="submit" name="type" value="2FA-E">Enable 2FA</button>
|
123
|
</form>
|
123
|
</form>
|
|
|
|
|
130
|
<input type="hidden" name="type" value="2FA-D">
|
130
|
<input type="hidden" name="type" value="2FA-D">
|
131
|
<p>2FA is enabled for this account with the following secret:</p>
|
131
|
<p>2FA is enabled for this account with the following secret:</p>
|
132
|
<input type="text" size="20" name="twofasecret" id="twofasecret" value="<?=$TwoFASecret?>" readonly><br>
|
132
|
<input type="text" size="20" name="twofasecret" id="twofasecret" value="<?=$TwoFASecret?>" readonly><br>
|
133
|
- <img src="<?=$TwoFA->getQRCodeImageAsDataUri(SITE_NAME, $TwoFASecret)?>"><br><br>
|
|
|
|
|
133
|
+ <img src="<?=$TwoFA->getQRCodeImageAsDataUri(SITE_NAME.':'.$LoggedUser['Username'], $TwoFASecret)?>"><br><br>
|
134
|
<p>To disable 2FA, click the button below.</p>
|
134
|
<p>To disable 2FA, click the button below.</p>
|
135
|
<button type="submit" name="type" value="2FA-D">Disable 2FA</button>
|
135
|
<button type="submit" name="type" value="2FA-D">Disable 2FA</button>
|
136
|
</form>
|
136
|
</form>
|
|
|
|
|
162
|
<input type="hidden" name="u2f-sigs" value='<?=json_encode($U2FSigs)?>'>
|
162
|
<input type="hidden" name="u2f-sigs" value='<?=json_encode($U2FSigs)?>'>
|
163
|
<input type="hidden" name="u2f-response">
|
163
|
<input type="hidden" name="u2f-response">
|
164
|
<input type="hidden" value="U2F-E">
|
164
|
<input type="hidden" value="U2F-E">
|
|
|
165
|
+ <p>Universal Two Factor is enabled.</p>
|
|
|
166
|
+ <p>To add an additional U2F token, plug it in and press the button on it</p>
|
|
|
167
|
+ <p>To disable U2F completely and deregister all tokens, press the button below</p>
|
|
|
168
|
+ <button type="submit" name="type" value="U2F-D">Disable U2F</button>
|
165
|
</form>
|
169
|
</form>
|
166
|
- <p>Universal Two Factor is enabled.</p>
|
|
|
167
|
- <p>To add an additional U2F token, plug it in and press the button on it</p>
|
|
|
168
|
- <p>To disable U2F completely and deregister all tokens, press the button below</p>
|
|
|
169
|
- <button type="submit" name="type" value="U2F-D">Disable U2F</button>
|
|
|
170
|
<? } ?>
|
170
|
<? } ?>
|
171
|
</div>
|
171
|
</div>
|
172
|
</div>
|
172
|
</div>
|