Commit 5671e2ee authored by Nigel McNie's avatar Nigel McNie
Browse files

Fix a fatal error upon user registration when there is more than one institution in the system.

This has been reported by several people but until recently I was unable to duplicate it. Thanks to Mark Curcher and Tony Degazon, who granted me access to an affected system.
parent 21b81a5c
......@@ -410,7 +410,7 @@ function register_validate(Pieform $form, $values) {
$user =(object) $values;
$user->authinstance = get_field('auth_instance', 'id', 'authname', 'internal'); // Internal
$user->authinstance = get_field('auth_instance', 'id', 'authname', 'internal', 'institution', $institution);
password_validate($form, $values, $user);
// First name and last name must contain at least one non whitespace
Supports Markdown
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