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
|
__construct(DvsUser $DvsUser, UserManager $UserManager, UsersRepository $UsersRepository, Framework $Framework)
Create a new SessionsRepository instance. |
||
| User |
login(array $input)
Attempty to login a user |
|
| Boolean |
logout()
Log user out |
|
| Boolean |
register(array $input)
Register new user |
|
| Void |
resendActivation(array $input)
Resends activate email using submitted email address |
|
| Response |
remind(array $input)
Handle a POST request for "remind password" |
|
| Response |
reset(array $credentials)
Handle POST data from reset (change) password form |
|
| False |
activate(int $userId, string $activateCode)
Process user activation request |
|
| Boolean |
removeUnactivatedUsers($daysOutstanding = 30)
Removes users which have been awaiting activation (after registering). |
|
| Boolean |
validateCredentials($credentials)
Validate user credentials (without logging user into system) |
|
| Boolean |
getRememberMe($input)
Get "remember_me" field value |
Details
at line 66
public
__construct(DvsUser $DvsUser, UserManager $UserManager, UsersRepository $UsersRepository, Framework $Framework)
Create a new SessionsRepository instance.
at line 86
public User
login(array $input)
Attempty to login a user
at line 112
public Boolean
logout()
Log user out
at line 126
public Boolean
register(array $input)
Register new user
at line 147
public Void
resendActivation(array $input)
Resends activate email using submitted email address
at line 180
public Response
remind(array $input)
Handle a POST request for "remind password"
at line 202
public Response
reset(array $credentials)
Handle POST data from reset (change) password form
at line 237
public False
activate(int $userId, string $activateCode)
Process user activation request
at line 260
public Boolean
removeUnactivatedUsers($daysOutstanding = 30)
Removes users which have been awaiting activation (after registering).
Currently, default is 30 days outstanding
at line 275
public Boolean
validateCredentials($credentials)
Validate user credentials (without logging user into system)
at line 285
public Boolean
getRememberMe($input)
Get "remember_me" field value