app/controllers/authentication_controller.rb
# The user has landed on the password reset page, they need to enter a new password.
# HTTP get

The user has landed on the password reset page, they need to enter a new password.
HTTP get
The user has landed on the password reset page they need to enter a new password . HTTP get
def password_reset
    token = params.first[0]
    @user = User.find_by_password_reset_token(token)
    if @user.nil?
      flash[:error] = 'You have not requested a password reset.'
      redirect_to :root
      return
    end
    if @user.password_expires_after < DateTime.now
      clear_password_reset(@user)
      @user.save
      flash[:error] = 'Password reset has expired.  Please request a new password reset.'
      redirect_to :forgot_password
    end
  end
def password_reset token = params . first [ 0 ] @user = User . find_by_password_reset_token ( token ) if @user . nil? flash [ :error ] = 'You have not requested a password reset.' redirect_to :root return end if @user . password_expires_after < DateTime . now clear_password_reset ( @user ) @user . save flash [ :error ] = 'Password reset has expired.  Please request a new password reset.' redirect_to :forgot_password end end
The user has landed on the password reset page, they need to enter a new password.
The user has landed on the password reset page they need to enter a new password .