SessionsRepository
class SessionsRepository
Class SessionsRepository is used to search and retrieve current DvsUser in session and things in context of a DvsUser/DvsGroup.
Properties
| array | $errors | Errors are kept in an array and can be used later if validation fails and we want to know why | |
| string | $message | This is a message that we can store why validation failed |
Methods
Create a new SessionsRepository instance.
Attempty to login a user
Log user out
Handle a POST request to recover password
Handle POST data from reset (change) password form
Process user activation request.
Send activation email.
Validate user credentials (without logging user into system)
Get "remember_me" field value
Details
at line 66
__construct(DvsUser $DvsUser, UserManager $UserManager, UsersRepository $UsersRepository, Framework $Framework)
Create a new SessionsRepository instance.
at line 84
User
login(array $input)
Attempty to login a user
at line 113
Boolean
logout()
Log user out
at line 127
Response
recoverPassword(array $input)
Handle a POST request to recover password
at line 150
Response
resetPassword(array $input)
Handle POST data from reset (change) password form
at line 185
False
activate(integer $userId, string $activateCode)
Process user activation request.
at line 208
Void
sendActivationEmail(DvsUser $user)
Send activation email.
at line 235
Boolean
validateCredentials($credentials)
Validate user credentials (without logging user into system)
at line 245
Boolean
getRememberMe($input)
Get "remember_me" field value