103 return "active=true";
112 return $user->active;
119 $matches = Query::create(
SiteUser,
"WHERE $usernameField=:username")
123 return (count($matches) > 0) ? $matches[0] :
null;
131 $matches = Query::create(
SiteUser,
"WHERE $emailField=:email")
135 return (count($matches) > 0) ? $matches[0] :
null;
144 return $user->getFullName();
155 $user = querySingle(
SiteUser,
"WHERE username='{$username}' and active=1");
196 if (!
$page || startsWith(
$page,
"components/login"))
210 return "/password_reset";
215 return "If you have an account on this system, please enter your user name or your user email address and we will email a temporary password to you.";
220 return "User name or email";
252 $mgr->upgrade($version);
static deleteRoleFromString(&$items, $del_role, $field="")
static getHomePage($account=null)
This class maps the site_user table.
Provides the interface to the user model for the application.
static deleteRole($del_role)
validatePassword($username, $password)
Validates the user's username and password, returning the matching user.
loadDefaultSession($user)
Load any supporting information into the user's session after a valid login.
getLoginRedirect($user)
Redirect the user after a valid login.
static upgradeComponent($version)
UserManager()
Creates a new UserManager object.
loginRedirect($user)
Redirect the user after a valid login.
getUsernameField()
Returns the field name of the username in the user model.
isActive($user)
Determine if the specified user account is active.
getEmailField()
Returns the field name of the email field in the user model.
getPasswordResetPage()
Returns the identifier of the password reset page.
getActiveClause()
Return a clause that constrains records on those that are active.
getPasswordHelpUserNameLabel()
getUserFullName($user)
Return the user's full name.
getUser($user_id)
Retrieves the user with the specified id.
getUserClass()
Returns the datamodel class name of the user model.