auth cas/db/ldap: MDL-18689 Fix typos in auth/{cas,db,ldap}/auth.php
Forward-ported from MOODLE_18_STABLE
This commit is contained in:
+2
-2
@@ -753,9 +753,9 @@ if ( !is_object($PHPCAS_CLIENT) ) {
|
||||
$updateuser->id = $user->id;
|
||||
$updateuser->auth = 'ldap';
|
||||
if ($DB->pdate_record('user', $updateuser)) {
|
||||
echo "\t"; print_string('auth_dbreviveser', 'auth_db', array($user->username, $user->id)); echo "\n";
|
||||
echo "\t"; print_string('auth_dbreviveduser', 'auth_db', array($user->username, $user->id)); echo "\n";
|
||||
} else {
|
||||
echo "\t"; print_string('auth_dbreviveusererror', 'auth_db', $user->username); echo "\n";
|
||||
echo "\t"; print_string('auth_dbrevivedusererror', 'auth_db', $user->username); echo "\n";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -363,7 +363,7 @@ class auth_plugin_db extends auth_plugin_base {
|
||||
if ($old_user = $DB->get_record('user', array('username'=>$user->username, 'deleted'=>1, 'mnethostid'=>$user->mnethostid))) {
|
||||
$user->id = $old_user->id;
|
||||
$DB->set_field('user', 'deleted', 0, array('username'=>$user->username));
|
||||
echo "\t"; print_string('auth_dbreviveuser', 'auth_db', array($user->username, $user->id)); echo "\n";
|
||||
echo "\t"; print_string('auth_dbreviveduser', 'auth_db', array($user->username, $user->id)); echo "\n";
|
||||
|
||||
//TODO - username required to use PARAM_USERNAME before inserting into user table (MDL-16919)
|
||||
} elseif ($id = $DB->insert_record ('user',$user)) { // it is truly a new user
|
||||
|
||||
+2
-2
@@ -680,9 +680,9 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
$updateuser->id = $user->id;
|
||||
$updateuser->auth = 'ldap';
|
||||
if ($DB->pdate_record('user', $updateuser)) {
|
||||
echo "\t"; print_string('auth_dbreviveser', 'auth_db', array($user->username, $user->id)); echo "\n";
|
||||
echo "\t"; print_string('auth_dbreviveduser', 'auth_db', array($user->username, $user->id)); echo "\n";
|
||||
} else {
|
||||
echo "\t"; print_string('auth_dbreviveusererror', 'auth_db', $user->username); echo "\n";
|
||||
echo "\t"; print_string('auth_dbrevivedusererror', 'auth_db', $user->username); echo "\n";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user