|
@@ -784,7 +784,7 @@ list($ArtistsAdded) = $DB->next_record();
|
784
|
784
|
<? $TwoFASecret = empty($TwoFactor) ? $TwoFA->createSecret() : $TwoFactor; ?>
|
785
|
785
|
<div class="field_div">
|
786
|
786
|
<? if (!empty($TwoFactor)) { ?>
|
787
|
|
- <p>2FA is enabled for this account with the following secret:</p>
|
|
787
|
+ <p class="min_padding">2FA is enabled for this account with the following secret:</p>
|
788
|
788
|
<? } ?>
|
789
|
789
|
<img src="<?=$TwoFA->getQRCodeImageAsDataUri(SITE_NAME, $TwoFASecret)?>">
|
790
|
790
|
<input type="text" size="20" name="twofasecret" id="twofasecret" value="<?=$TwoFASecret?>" readonly><br>
|
|
@@ -792,6 +792,11 @@ list($ArtistsAdded) = $DB->next_record();
|
792
|
792
|
<input type="text" size="20" maxlength="6" name="twofa" id="twofa" placeholder="Verification Code">
|
793
|
793
|
<p class="min_padding">To enable 2FA, scan the above QR code (or add the secret below it) to your 2FA client of choice, and enter a verification code it generates. Note that the verification code must not have expired when you save your profile.</p>
|
794
|
794
|
<p class="min_padding">When setting up 2FA, you must enter your current password in the "Current password" field before saving your changes.</p>
|
|
795
|
+ <p class="min_padding"><strong class="important_text">WARNING</strong>: Losing your 2FA key can make your account unrecoverable. Only enable it if you're sure you can handle it.
|
|
796
|
+ <? } else { ?>
|
|
797
|
+ <label><input type="checkbox" name="disable2fa" id="disable2fa" />
|
|
798
|
+ Disable 2FA</label>
|
|
799
|
+ <p class="min_padding">When disabling 2FA, you must enter your current password in the "Current Password" field before saving your changes</p>
|
795
|
800
|
<? } ?>
|
796
|
801
|
</div>
|
797
|
802
|
</td>
|