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

Response
recoverPassword(array $input)

Handle a POST request to recover password

Response
resetPassword(array $input)

Handle POST data from reset (change) password form

False
activate(integer $userId, string $activateCode)

Process user activation request.

Void
sendActivationEmail(DvsUser $user)

Send activation email.

Boolean
validateCredentials($credentials)

Validate user credentials (without logging user into system)

Boolean
getRememberMe($input)

Get "remember_me" field value

Details

at line 66
__construct(DvsUser $DvsUser, UserManager $UserManager, UsersRepository $UsersRepository, Framework $Framework)

Create a new SessionsRepository instance.

Parameters

DvsUser $DvsUser
UserManager $UserManager
UsersRepository $UsersRepository
Framework $Framework

at line 84
User login(array $input)

Attempty to login a user

Parameters

array $input

Return Value

User

at line 113
Boolean logout()

Log user out

Return Value

Boolean

at line 127
Response recoverPassword(array $input)

Handle a POST request to recover password

Parameters

array $input

Return Value

Response

at line 150
Response resetPassword(array $input)

Handle POST data from reset (change) password form

Parameters

array $input

Return Value

Response

at line 185
False activate(integer $userId, string $activateCode)

Process user activation request.

Parameters

integer $userId
string $activateCode

Return Value

False | DeviseUser

at line 208
Void sendActivationEmail(DvsUser $user)

Send activation email.

Parameters

DvsUser $user

Return Value

Void

at line 235
Boolean validateCredentials($credentials)

Validate user credentials (without logging user into system)

Parameters

$credentials

Return Value

Boolean

at line 245
Boolean getRememberMe($input)

Get "remember_me" field value

Parameters

$input

Return Value

Boolean