1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Change flash message to alert instead of error

Devise uses the defaults :notice and :alert everywhere, this one seems to
have been missed since it was introduced in
ff75341c75.
This commit is contained in:
Carlos Antonio da Silva 2013-05-29 21:34:14 -03:00
parent 2ead747be6
commit ae4448403c

View file

@ -53,7 +53,7 @@ class Devise::PasswordsController < DeviseController
# Check if a reset_password_token is provided in the request
def assert_reset_token_passed
if params[:reset_password_token].blank?
set_flash_message(:error, :no_token)
set_flash_message(:alert, :no_token)
redirect_to new_session_path(resource_name)
end
end