Commit f1b277b7 authored by Richard Mansfield's avatar Richard Mansfield Committed by Nigel McNie
Browse files

Fix a fatal error when registering. password_validate expected a User object,...

Fix a fatal error when registering. password_validate expected a User object, which register.php cannot provide, so loosened the type hint on the function.
parent fb99f4b2
......@@ -1258,7 +1258,7 @@ function auth_generate_login_form() {
* @param array $values The values passed through
* @param string $authplugin The authentication plugin that the user uses
*/
function password_validate(Pieform $form, $values, User $user) {
function password_validate(Pieform $form, $values, $user) {
$authobj = AuthFactory::create($user->authinstance);
......
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