";
- print "";
- print "
";
-
print_hidden("op", "pref-prefs");
print_hidden("method", "changeemail");
- print "
";
+
if ($_SESSION["auth_module"]) {
$authenticator = PluginHost::getInstance()->get_plugin($_SESSION["auth_module"]);
} else {
@@ -244,13 +251,11 @@ class Pref_Prefs extends Handler_Protected {
if ($authenticator && method_exists($authenticator, "change_password")) {
- print "
" . __("Password") . "
";
-
print "
";
- print "
";
+ print "";
} else if (function_exists("imagecreatefromstring")) {
- print "
" . __("You will need a compatible Authenticator to use this. Changing your password would automatically disable OTP.") . "
";
-
- print "
".__("Scan the following code by the Authenticator application:")."
";
+ print_warning("You will need a compatible Authenticator to use this. Changing your password would automatically disable OTP.");
+ print_notice("Scan the following code by the Authenticator application:");
$csrf_token = $_SESSION["csrf_token"];
- print "
";
+ print "
";
- print "
";
} else {
-
- print_notice(__("PHP GD functions are required for OTP support."));
-
+ print_notice("PHP GD functions are required for OTP support.");
}
-
}
+
+ print "