PHP 클래스 CakeDC\Users\Model\Behavior\PasswordBehavior

상속: extends Behavior
파일 보기 프로젝트 열기: cakedc/users

공개 메소드들

메소드 설명
changePassword ( Cake\Datasource\EntityInterface $user ) : mixed Change password method
initialize ( array $config ) : void Constructor hook method.
resetToken ( string $reference, array $options = [] ) : string Resets user token

보호된 메소드들

메소드 설명
_getUser ( string $reference ) : mixed Get the user by email or username

메소드 상세

_getUser() 보호된 메소드

Get the user by email or username
protected _getUser ( string $reference ) : mixed
$reference string reference could be either an email or username
리턴 mixed user entity if found

changePassword() 공개 메소드

Change password method
public changePassword ( Cake\Datasource\EntityInterface $user ) : mixed
$user Cake\Datasource\EntityInterface user data.
리턴 mixed

initialize() 공개 메소드

Constructor hook method.
public initialize ( array $config ) : void
$config array The configuration settings provided to this behavior.
리턴 void

resetToken() 공개 메소드

Resets user token
public resetToken ( string $reference, array $options = [] ) : string
$reference string User username or email
$options array checkActive, sendEmail, expiration
리턴 string