test/fixtures/code/input/example.rb
# Checks expiration of reset token.
Checks expiration of reset token.
Checks expiration of reset token .
def check_expiration
      if @user.password_reset_expired?
        flash[:danger] = "Password reset has expired."
        redirect_to new_password_reset_url
      end
    end
def check_expiration if @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 .