otp: display notice if GD is missing
This commit is contained in:
parent
b8c9341afa
commit
a845a3d5e5
1 changed files with 5 additions and 1 deletions
|
@ -368,7 +368,7 @@ class Pref_Prefs extends Handler_Protected {
|
||||||
|
|
||||||
print "</form>";
|
print "</form>";
|
||||||
|
|
||||||
} else {
|
} else if (function_exists("imagecreatefromstring")) {
|
||||||
|
|
||||||
print "<p>".__("You will need a compatible Authenticator to use this. Changing your password would automatically disable OTP.") . "</p>";
|
print "<p>".__("You will need a compatible Authenticator to use this. Changing your password would automatically disable OTP.") . "</p>";
|
||||||
|
|
||||||
|
@ -427,6 +427,10 @@ class Pref_Prefs extends Handler_Protected {
|
||||||
|
|
||||||
print "</form>";
|
print "</form>";
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
print_notice(__("PHP GD functions are required for OTP support."));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue