Commit 9585196c authored by Nigel McNie's avatar Nigel McNie
Browse files

Ensure that the root user's authinstance is set properly

parent 3ff6b790
......@@ -404,7 +404,7 @@ function register_validate(Pieform $form, $values) {
}
$user =(object) $values;
$user->authinstance = 1; // Internal
$user->authinstance = get_field('auth_instance', 'id', 'authname', 'internal'); // Internal
password_validate($form, $values, $user);
// First name and last name must contain at least one non whitespace
......
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