Commit 2a28d918 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Registration with an institution adds a membership request

parent 7aeadfcc
......@@ -85,7 +85,6 @@ if (isset($key)) {
$user = new User();
$user->username = $registration->username;
$user->password = $registration->password;
$user->institution = $registration->institution;
$user->salt = $registration->salt;
$user->passwordchange = 0;
$user->active = 1;
......@@ -97,7 +96,7 @@ if (isset($key)) {
$user->lastname = $registration->lastname;
$user->commit();
$user->join_institution($registration->institution);
$user->add_institution_request($registration->institution);
$registration->id = $user->id;
......
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