mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Auth: Replace a hardcoded string: MDL-8069
This commit is contained in:
parent
a1229bdd39
commit
a57db6bda3
@ -42,7 +42,8 @@ class auth_plugin_nntp {
|
||||
*/
|
||||
function user_login ($username, $password) {
|
||||
if (! function_exists('imap_open')) {
|
||||
error("Cannot use NNTP authentication. The PHP IMAP module is not installed.");
|
||||
print_error('auth_nntpnotinstalled','auth');
|
||||
exit;
|
||||
}
|
||||
|
||||
global $CFG;
|
||||
|
@ -42,7 +42,8 @@ class auth_plugin_pop3 {
|
||||
*/
|
||||
function user_login($username, $password) {
|
||||
if (! function_exists('imap_open')) {
|
||||
error("Cannot use POP3 authentication. The PHP IMAP module is not installed.");
|
||||
print_error('auth_pop3notinstalled','auth');
|
||||
exit;
|
||||
}
|
||||
|
||||
global $CFG;
|
||||
|
Loading…
x
Reference in New Issue
Block a user