From d6fd0d5462ad5338cc60ad211856b3279d430bfb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 6 Mar 2021 23:51:48 +0300 Subject: add some icons, remove some words --- classes/pref/prefs.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'classes/pref/prefs.php') diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index ea9e6a967..592bdb705 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -384,7 +384,7 @@ class Pref_Prefs extends Handler_Protected { } private function index_auth_app_passwords() { - print_notice("You can create separate passwords for API clients. Using one is required if you enable OTP."); + print_notice("Separate passwords used for API clients. Required if you enable OTP."); ?>
@@ -454,15 +454,9 @@ class Pref_Prefs extends Handler_Protected { } else { - print_notice("You will need to generate app passwords for the API clients if you enable OTP."); + print ""; - if (function_exists("imagecreatefromstring")) { - print "

" . __("Scan the following code by the Authenticator application or copy the key manually") . "

"; - print ""; - } else { - print_error("PHP GD functions are required to generate QR codes."); - print "

" . __("Use the following OTP key with a compatible Authenticator application") . "

"; - } + print_notice("You will need to generate app passwords for API clients if you enable OTP."); $otp_secret = UserHelper::get_otp_secret($_SESSION["uid"]); ?> -- cgit v1.2.3-54-g00ecf