Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
2a28d918
Commit
2a28d918
authored
Nov 29, 2007
by
Richard Mansfield
Browse files
Registration with an institution adds a membership request
parent
7aeadfcc
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/register.php
View file @
2a28d918
...
@@ -85,7 +85,6 @@ if (isset($key)) {
...
@@ -85,7 +85,6 @@ if (isset($key)) {
$user
=
new
User
();
$user
=
new
User
();
$user
->
username
=
$registration
->
username
;
$user
->
username
=
$registration
->
username
;
$user
->
password
=
$registration
->
password
;
$user
->
password
=
$registration
->
password
;
$user
->
institution
=
$registration
->
institution
;
$user
->
salt
=
$registration
->
salt
;
$user
->
salt
=
$registration
->
salt
;
$user
->
passwordchange
=
0
;
$user
->
passwordchange
=
0
;
$user
->
active
=
1
;
$user
->
active
=
1
;
...
@@ -97,7 +96,7 @@ if (isset($key)) {
...
@@ -97,7 +96,7 @@ if (isset($key)) {
$user
->
lastname
=
$registration
->
lastname
;
$user
->
lastname
=
$registration
->
lastname
;
$user
->
commit
();
$user
->
commit
();
$user
->
join
_institution
(
$registration
->
institution
);
$user
->
add
_institution
_request
(
$registration
->
institution
);
$registration
->
id
=
$user
->
id
;
$registration
->
id
=
$user
->
id
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment