src/Model/Behavior/UserBehavior.php
public function verifyPasswordResetToken($token, $options = []) {
		$defaults = [
			'tokenField' => $this->_field('passwordToken'),
			'expirationField' => $this->_field('passwordTokenExpires'),
			'returnData' => true,
		];

		return $this->verifyToken($token, Hash::merge($defaults, $options));
	}
public function verifyPasswordResetToken($token, $options = []) {
		$defaults = [
			'tokenField' => $this->_field('passwordToken'),
			'expirationField' => $this->_field('passwordTokenExpires'),
			'returnData' => true,
		];

		return $this->verifyToken($token, Hash::merge($defaults, $options));
	}
public function verifyPasswordResetToken ( $ token , $ options = [ ] ) { $ defaults = [ 'tokenField' => $ this -> _field ( 'passwordToken' ) , 'expirationField' => $ this -> _field ( 'passwordTokenExpires' ) , 'returnData' => true , ] ; return $ this -> verifyToken ( $ token , Hash :: merge ( $ defaults , $ options ) ) ; }
Verify the password reset token

- `tokenField` - The field to check for the token
- `expirationField` - The field to check for the token expiration date

@param string $token Token string
@param array $options Options
@throws \Cake\Datasource\Exception\RecordNotFoundException if the token was not found at all
@return bool Returns false if the token has expired
Verify the password reset token