Property | Type | Description | |
---|---|---|---|
$_defaultConfig | array | ||
$_passwordHasher | Cake\Auth\AbstractPasswordHasher | Password hasher instance. | |
$_validationRules | array |
Method | Description | |
---|---|---|
__construct ( |
Adding validation rules also adds and merges config settings (direct + configure) | |
beforeMarshal ( Cake\Event\Event $event, ArrayObject $data, ArrayObject $options ) : void | Preparing the data | |
beforeRules ( Cake\Event\Event $event, Cake\ORM\Entity $entity, ArrayObject $options, string $operation ) : void | Preparing the data | |
beforeSave ( Cake\Event\Event $event, Cake\ORM\Entity $entity ) : void | Hashing the password and whitelisting | |
initialize ( array $config ) : void | Constructor hook method. | |
needsPasswordRehash ( string $hash ) : boolean | Checks if the PasswordHasher class supports this and if so, whether the password needs to be rehashed or not. | |
validateCurrentPwd ( string $pwd, array $context ) : boolean | If not implemented in Table class | |
validateIdentical ( string $value, array $options, array $context ) : boolean | If not implemented in Table class | |
validateNotSame ( string $data, array $options, array $context ) : boolean | If not implemented in Table class | |
validateNotSameHash ( string $data, array $context ) : boolean | If not implemented in Table class |
Method | Description | |
---|---|---|
_getPasswordHasher ( string | array $hasher, array $options = [] ) : Cake\Auth\AbstractPasswordHasher | PasswordableBehavior::_getPasswordHasher() | |
_validateSameHash ( string $pwd, array $context ) : boolean | PasswordableBehavior::_validateSameHash() |
public __construct ( |
||
$table | ||
$config | array |
public beforeMarshal ( Cake\Event\Event $event, ArrayObject $data, ArrayObject $options ) : void | ||
$event | Cake\Event\Event | |
$data | ArrayObject | |
$options | ArrayObject | |
return | void |
public beforeRules ( Cake\Event\Event $event, Cake\ORM\Entity $entity, ArrayObject $options, string $operation ) : void | ||
$event | Cake\Event\Event | |
$entity | Cake\ORM\Entity | |
$options | ArrayObject | |
$operation | string | |
return | void |
public beforeSave ( Cake\Event\Event $event, Cake\ORM\Entity $entity ) : void | ||
$event | Cake\Event\Event | |
$entity | Cake\ORM\Entity | |
return | void |
public initialize ( array $config ) : void | ||
$config | array | The configuration array this behavior is using. |
return | void |
public needsPasswordRehash ( string $hash ) : boolean | ||
$hash | string | Currently hashed password. |
return | boolean | Success |
protected AbstractPasswordHasher,Cake\Auth $_passwordHasher | ||
return | Cake\Auth\AbstractPasswordHasher |