/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/auth/tests/App/Model/Entity
NameSizeModeActions
User.php22520644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/auth/tests/App/Model/Entity/User.php (2252B)
true, 'id' => false, 'is_superuser' => false, 'role' => false, ]; /** * Fields that are excluded from JSON an array versions of the entity. * * @var array */ protected $_hidden = [ 'password', 'token', 'token_expires', 'api_token', ]; /** * @param string $password password that will be set. * @return bool|string */ protected function _setPassword($password) { return $this->hashPassword($password); } /** * Hash a password using the configured password hasher, * use DefaultPasswordHasher if no one was configured * * @param string $password password to be hashed * @return mixed */ public function hashPassword($password) { $PasswordHasher = $this->getPasswordHasher(); return $PasswordHasher->hash($password); } /** * Return the configured Password Hasher * * @return mixed */ public function getPasswordHasher() { return new DefaultPasswordHasher(); } /** * Checks if a password is correctly hashed * * @param string $password password that will be check. * @param string $hashedPassword hash used to check password. * @return bool */ public function checkPassword($password, $hashedPassword) { $PasswordHasher = $this->getPasswordHasher(); return $PasswordHasher->check($password, $hashedPassword); } }