Commit aabb8465 authored by Donal McMullan's avatar Donal McMullan
Browse files

New reanmiate method to create the Live user from a user id

parent eaa64142
......@@ -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.
*
......
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