app/controllers/password_resets_controller.rb
# Checks expiration of reset token.
Checks expiration of reset token.
Checks expiration of reset token .
def check_expiration
    if @user.nil? || @user.password_reset_expired?
      flash[:danger] = "Password reset has expired."
      redirect_to new_password_reset_url
    end
  end
def check_expiration if @user . nil? || @user . password_reset_expired? flash [ :danger ] = "Password reset has expired." redirect_to new_password_reset_url end end
Checks expiration of reset token.
Checks expiration of reset token .