Devise
Class

Devise\Users\Sessions\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

__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.

Parameters

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

at line 86
public User login(array $input)

Attempty to login a user

Parameters

array $input

Return Value

User

at line 112
public Boolean logout()

Log user out

Return Value

Boolean

at line 126
public Boolean register(array $input)

Register new user

Parameters

array $input

Return Value

Boolean

at line 147
public Void resendActivation(array $input)

Resends activate email using submitted email address

Parameters

array $input

Return Value

Void

at line 180
public Response remind(array $input)

Handle a POST request for "remind password"

Parameters

array $input

Return Value

Response

at line 202
public Response reset(array $credentials)

Handle POST data from reset (change) password form

Parameters

array $credentials

Return Value

Response

at line 237
public False activate(int $userId, string $activateCode)

Process user activation request

Parameters

int $userId
string $activateCode

Return Value

False | DeviseUser

at line 260
public Boolean removeUnactivatedUsers($daysOutstanding = 30)

Removes users which have been awaiting activation (after registering).

Currently, default is 30 days outstanding

Parameters

$daysOutstanding

Return Value

Boolean

at line 275
public Boolean validateCredentials($credentials)

Validate user credentials (without logging user into system)

Parameters

$credentials

Return Value

Boolean

at line 285
public Boolean getRememberMe($input)

Get "remember_me" field value

Parameters

$input

Return Value

Boolean