Property | Type | Description | |
---|---|---|---|
$errors | array | Errors are kept in an array and can be used later if validation fails and we want to know why | |
$message | string | This is a message that we can store why validation failed |
Property | Type | Description | |
---|---|---|---|
$DvsUser | DvsUser | DvsUser model to fetch database records | |
$Framework | Framework components being used from Laravel's framework | ||
$UserManager | UserManager manages users | ||
$UsersRepository | UsersRepository fetches users and related data |
Method | Description | |
---|---|---|
__construct ( DvsUser $DvsUser, |
Create a new SessionsRepository instance. | |
activate ( integer $userId, string $activateCode ) : False | DeviseUser | Process user activation request. | |
getRememberMe ( $input ) : boolean | Get "remember_me" field value | |
login ( array $input ) : User | Attempty to login a user | |
logout ( ) : boolean | Log user out | |
recoverPassword ( array $input ) : Response | Handle a POST request to recover password | |
resetPassword ( array $input ) : Response | Handle POST data from reset (change) password form | |
sendActivationEmail ( DvsUser $user ) : Void | Send activation email. | |
validateCredentials ( $credentials ) : boolean | Validate user credentials (without logging user into system) |
Method | Description | |
---|---|---|
attemptUserLogin ( array $input ) : DvsUser | false | Iterates through an array of username/email fields in the users table and attempts to authenticate an instance of DvsUser | |
retrieveUserFindMethodByField ( string $fieldname, string $value ) : DvsUser | Gets the proper UsersRepository find method for a user based on the fieldname being passed in. |
Method | Description | |
---|---|---|
checkFieldExists ( $field ) |
public __construct ( DvsUser $DvsUser, |
||
$DvsUser | DvsUser | |
$UserManager | ||
$UsersRepository | ||
$Framework |
protected attemptUserLogin ( array $input ) : DvsUser | false | ||
$input | array | |
return | DvsUser | false | | false |
public getRememberMe ( $input ) : boolean | ||
return | boolean |
public recoverPassword ( array $input ) : Response | ||
$input | array | |
return | Response |
public resetPassword ( array $input ) : Response | ||
$input | array | |
return | Response |
protected retrieveUserFindMethodByField ( string $fieldname, string $value ) : DvsUser | ||
$fieldname | string | |
$value | string | |
return | DvsUser |
public sendActivationEmail ( DvsUser $user ) : Void | ||
$user | DvsUser | |
return | Void |
public validateCredentials ( $credentials ) : boolean | ||
return | boolean |
protected DvsUser $DvsUser | ||
return | DvsUser |
protected Framework,Devise\Support $Framework | ||
return |
protected UserManager,Devise\Users $UserManager | ||
return |
protected UsersRepository,Devise\Users $UsersRepository | ||
return |
public array $errors | ||
return | array |
public string $message | ||
return | string |