|
|
@ -469,13 +469,13 @@ class Pref_Prefs extends Handler_Protected {
|
|
|
|
print_notice("You will need to use a separate password for the API clients if you enable OTP.");
|
|
|
|
print_notice("You will need to use a separate password for the API clients if you enable OTP.");
|
|
|
|
|
|
|
|
|
|
|
|
if (function_exists("imagecreatefromstring")) {
|
|
|
|
if (function_exists("imagecreatefromstring")) {
|
|
|
|
print "<h3>" . __("Scan the following code by the Authenticator application or copy the key manually:") . "</h3>";
|
|
|
|
print "<h3>" . __("Scan the following code by the Authenticator application or copy the key manually") . "</h3>";
|
|
|
|
|
|
|
|
|
|
|
|
$csrf_token = $_SESSION["csrf_token"];
|
|
|
|
$csrf_token = $_SESSION["csrf_token"];
|
|
|
|
print "<img alt='otp qr-code' src='backend.php?op=pref-prefs&method=otpqrcode&csrf_token=$csrf_token'>";
|
|
|
|
print "<img alt='otp qr-code' src='backend.php?op=pref-prefs&method=otpqrcode&csrf_token=$csrf_token'>";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
print_error("PHP GD functions are required to generate QR codes.");
|
|
|
|
print_error("PHP GD functions are required to generate QR codes.");
|
|
|
|
print "<h3>" . __("Use the following OTP key with a compatible Authenticator application:") . "</h3>";
|
|
|
|
print "<h3>" . __("Use the following OTP key with a compatible Authenticator application") . "</h3>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
print "<form dojoType='dijit.form.Form' id='changeOtpForm'>";
|
|
|
|
print "<form dojoType='dijit.form.Form' id='changeOtpForm'>";
|
|
|
|