public function checkResetPasswordCode($resetCode)
    {
        if ($this->reset_code != $resetCode)
            return FALSE;

        $expiration = self::$resetExpiration;
        if ($expiration > 0) {
            if (Carbon::now()->gte($this->reset_time->addMinutes($expiration))) {
                // Reset password request has expired, so clear code.
                $this->clearResetPasswordCode();

                return FALSE;
            }
        }

        return TRUE;
    }
public function checkResetPasswordCode($resetCode)
    {
        if ($this->reset_code != $resetCode)
            return FALSE;

        $expiration = self::$resetExpiration;
        if ($expiration > 0) {
            if (Carbon::now()->gte($this->reset_time->addMinutes($expiration))) {
                // Reset password request has expired, so clear code.
                $this->clearResetPasswordCode();

                return FALSE;
            }
        }

        return TRUE;
    }
public function checkResetPasswordCode ( $ resetCode ) { if ( $ this -> reset_code != $ resetCode ) return FALSE ; $ expiration = self :: $ resetExpiration ; if ( $ expiration > 0 ) { if ( Carbon :: now ( ) -> gte ( $ this -> reset_time -> addMinutes ( $ expiration ) ) ) { // Reset password request has expired, so clear code. $ this -> clearResetPasswordCode ( ) ; return FALSE ; } } return TRUE ; }
Checks if the provided user reset password code is valid without actually resetting the password.

@param string $resetCode

@return bool
Checks if the provided user reset password code is valid without actually resetting the password .