Свойство | Тип | Описание | |
---|---|---|---|
$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 |
Свойство | Тип | Описание | |
---|---|---|---|
$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 |
Метод | Описание | |
---|---|---|
__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) |
Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
checkFieldExists ( $field ) |
public __construct ( DvsUser $DvsUser, |
||
$DvsUser | DvsUser | |
$UserManager | ||
$UsersRepository | ||
$Framework |
protected attemptUserLogin ( array $input ) : DvsUser | false | ||
$input | array | |
Результат | DvsUser | false | | false |
public getRememberMe ( $input ) : boolean | ||
Результат | boolean |
public recoverPassword ( array $input ) : Response | ||
$input | array | |
Результат | Response |
public resetPassword ( array $input ) : Response | ||
$input | array | |
Результат | Response |
protected retrieveUserFindMethodByField ( string $fieldname, string $value ) : DvsUser | ||
$fieldname | string | |
$value | string | |
Результат | DvsUser |
public sendActivationEmail ( DvsUser $user ) : Void | ||
$user | DvsUser | |
Результат | Void |
public validateCredentials ( $credentials ) : boolean | ||
Результат | boolean |
protected DvsUser $DvsUser | ||
Результат | DvsUser |
protected Framework,Devise\Support $Framework | ||
Результат |
protected UserManager,Devise\Users $UserManager | ||
Результат |
protected UsersRepository,Devise\Users $UsersRepository | ||
Результат |
public array $errors | ||
Результат | array |
public string $message | ||
Результат | string |