public function index($token)
    {
        // Validate token
        /** @var $resetToken ResetPasswordModel */
        $resetToken = $this->resetPasswordRepository->getByToken($token);
        if (empty($resetToken) || $resetToken->isUsed()) {
            return view('nodes.api::reset-password.invalid');
        }

        // Check if token's expiry date has been exceed
        if ($resetToken->isExpired()) {
            return view('nodes.api::reset-password.expired');
        }

        return view('nodes.api::reset-password.form', compact('token'));
    }
public function index($token)
    {
        // Validate token
        /** @var $resetToken ResetPasswordModel */
        $resetToken = $this->resetPasswordRepository->getByToken($token);
        if (empty($resetToken) || $resetToken->isUsed()) {
            return view('nodes.api::reset-password.invalid');
        }

        // Check if token's expiry date has been exceed
        if ($resetToken->isExpired()) {
            return view('nodes.api::reset-password.expired');
        }

        return view('nodes.api::reset-password.form', compact('token'));
    }
public function index ( $ token ) { // Validate token /** @var $resetToken ResetPasswordModel */ $ resetToken = $ this -> resetPasswordRepository -> getByToken ( $ token ) ; if ( empty ( $ resetToken ) || $ resetToken -> isUsed ( ) ) { return view ( 'nodes.api::reset-password.invalid' ) ; } // Check if token's expiry date has been exceed if ( $ resetToken -> isExpired ( ) ) { return view ( 'nodes.api::reset-password.expired' ) ; } return view ( 'nodes.api::reset-password.form' , compact ( 'token' ) ) ; }
Reset password form.

@author Morten Rugaard <moru@nodes.dk>

@param  string $token
@return \Illuminate\View\View
Reset password form .