Метод |
Описание |
|
can ( string $action, string $context = '', string $cabin = '', integer $userID ) : boolean |
Perform a permissions check |
|
completeLogOut ( ) : boolean |
Completely wipe all authentication mechanisms (Session, Cookie) |
|
getActiveUserId ( ) : integer |
Get the current user ID. Throws a UserNotLoggedIn exception if you aren't logged in. |
|
isLoggedIn ( ) : boolean |
Are we logged in to a user account? |
|
isSuperUser ( integer $userId ) : boolean |
Are we currently logged in as an admin? |
|
tightenSecurityBolt ( ) |
After loading the Security bolt in place, configure it. |
|
verifySessionCanary ( integer $userID, boolean $logOut = true ) : boolean |
If another session triggered a password reset, we should be logged out
as per the Bridge configuration. (This /is/ an optional feature.) |
|