mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
New error when the admin user is (still) set to the default "admin".
This commit is contained in:
parent
403bb50d7b
commit
e98e09150e
@ -372,6 +372,7 @@ $string[undecided] = "Undecided";
|
||||
$string[unenrol] = "Unenrol";
|
||||
$string[unenrolme] = "Unenrol me from \$a";
|
||||
$string[unenrolsure] = "Are you sure you want to unenrol \$a from this course?";
|
||||
$string[unsafepassword] = "Unsafe password - try something else";
|
||||
$string[unzip] = "Unzip";
|
||||
$string[update] = "Update";
|
||||
$string[updated] = "Updated \$a";
|
||||
|
@ -207,6 +207,9 @@ function find_form_errors(&$user, &$usernew, &$err) {
|
||||
|
||||
if (empty($usernew->newpassword) and empty($user->password))
|
||||
$err["newpassword"] = get_string("missingpassword");
|
||||
|
||||
if ($usernew->newpassword == md5("admin") or $user->password == md5("admin"))
|
||||
$err["newpassword"] = get_string("unsafepassword");
|
||||
}
|
||||
|
||||
if (empty($usernew->email))
|
||||
|
Loading…
x
Reference in New Issue
Block a user