mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
Second version of token_authenticatable reflecting feedback: Nuked all hook-stuff. Should be easy to custom-reset authentication tokens by inheritance.
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
committed by
José Valim
parent
e1440fb430
commit
4878bdb60b
@@ -18,7 +18,7 @@ class SessionsController < ApplicationController
|
||||
set_flash_message :notice, :signed_in
|
||||
sign_in_and_redirect(resource_name, resource, true)
|
||||
else
|
||||
set_now_flash_message :alert, (warden.message || :invalid)
|
||||
set_now_flash_message :alert, warden.message || :invalid
|
||||
build_resource
|
||||
render_with_scope :new
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user