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
aabb8465
Commit
aabb8465
authored
May 31, 2007
by
Donal McMullan
Browse files
New reanmiate method to create the Live user from a user id
parent
eaa64142
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/auth/user.php
View file @
aabb8465
...
...
@@ -392,6 +392,21 @@ class LiveUser extends User {
$this
->
commit
();
}
/**
* When a user creates a security context by whatever method, we do some
* standard stuff
*
* @param object $user Record from the usr table
* @return void
*/
public
function
reanimate
(
$id
)
{
if
(
$user
=
get_record
(
'usr'
,
'id'
,
$id
))
{
$this
->
authenticate
(
$user
);
return
true
;
}
return
false
;
}
/**
* Gets the user property keyed by $key.
*
...
...
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