Commit 6d9194ff authored by Nigel McNie's avatar Nigel McNie
Browse files

Fixed bug #1120 - broken language string when attempting to register with...

Fixed bug #1120 - broken language string when attempting to register with invalid password. Thanks to Aaron.
parent f9b68760
......@@ -1178,7 +1178,7 @@ function password_validate(Pieform $form, $values, $username, $institution) {
$authobj = new AuthInternal($authinstances[0]->id);
if (!$form->get_error('password1') && !$authobj->is_password_valid($values['password1'])) {
$form->set_error('password1', get_string('passwordinvalidform', "auth.$authtype"));
$form->set_error('password1', get_string('passwordinvalidform', "auth.$authobj->type"));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment