Method |
Description |
|
create ( array $credentials, Closure $callback = null ) : Cartalyst\Sentinel\Users\UserInterface |
Creates a user. |
|
findByCredentials ( array $credentials ) : Cartalyst\Sentinel\Users\UserInterface |
Finds a user by the given credentials. |
|
findById ( integer $id ) : Cartalyst\Sentinel\Users\UserInterface |
Finds a user by the given primary key. |
|
findByPersistenceCode ( string $code ) : Cartalyst\Sentinel\Users\UserInterface |
Finds a user by the given persistence code. |
|
recordLogin ( Cartalyst\Sentinel\Users\UserInterface $user ) : Cartalyst\Sentinel\Users\UserInterface | boolean |
Records a login for the given user. |
|
recordLogout ( Cartalyst\Sentinel\Users\UserInterface $user ) : Cartalyst\Sentinel\Users\UserInterface | boolean |
Records a logout for the given user. |
|
update ( Cartalyst\Sentinel\Users\UserInterface | integer $user, array $credentials ) : Cartalyst\Sentinel\Users\UserInterface |
Updates a user. |
|
validForCreation ( array $credentials ) : boolean |
Validate if the given user is valid for creation. |
|
validForUpdate ( Cartalyst\Sentinel\Users\UserInterface | integer $user, array $credentials ) : boolean |
Validate if the given user is valid for updating. |
|
validateCredentials ( Cartalyst\Sentinel\Users\UserInterface $user, array $credentials ) : boolean |
Validate the password of the given user. |
|