diff options
author | Andrew Dolgov <[email protected]> | 2021-03-05 17:40:17 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-03-05 17:40:17 +0300 |
commit | 2cd159e2cefaecb54233686cd949aac4d70b9320 (patch) | |
tree | 16117b9d46797e6acd547a2ff390437d31aeea5f /classes/pref/prefs.php | |
parent | 2aed79d729cc91eff4781b01f24e7edb0b2321bc (diff) |
use separate database column for OTP secrets (migrate previous format if needed)
Diffstat (limited to 'classes/pref/prefs.php')
-rw-r--r-- | classes/pref/prefs.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index eae67fbac..854b70549 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -352,10 +352,6 @@ class Pref_Prefs extends Handler_Protected { } </script> - <?php if ($otp_enabled) { - print_notice(__("Changing your current password will disable OTP.")); - } ?> - <fieldset> <label><?= __("Old password:") ?></label> <input dojoType='dijit.form.ValidationTextBox' type='password' required='1' name='old_password'> @@ -458,7 +454,6 @@ class Pref_Prefs extends Handler_Protected { } else { - print_warning("You will need a compatible Authenticator to use this. Changing your password would automatically disable OTP."); print_notice("You will need to generate app passwords for the API clients if you enable OTP."); if (function_exists("imagecreatefromstring")) { @@ -479,7 +474,7 @@ class Pref_Prefs extends Handler_Protected { <fieldset> <label><?= __("OTP Key:") ?></label> - <input dojoType='dijit.form.ValidationTextBox' disabled='disabled' value="<?= $otp_secret ?>" size='32'> + <input dojoType='dijit.form.ValidationTextBox' disabled='disabled' value="<?= $otp_secret ?>" style='width : 215px'> </fieldset> <!-- TODO: return JSON from the backend call --> |