Fix empty flash message on the settings page (#3345)
parent
a867644030
commit
f7283b1f0f
|
@ -12,13 +12,13 @@ class Auth::SessionsController < Devise::SessionsController
|
|||
def create
|
||||
super do |resource|
|
||||
remember_me(resource)
|
||||
flash[:notice] = nil
|
||||
flash.delete(:notice)
|
||||
end
|
||||
end
|
||||
|
||||
def destroy
|
||||
super
|
||||
flash[:notice] = nil
|
||||
flash.delete(:notice)
|
||||
end
|
||||
|
||||
protected
|
||||
|
|
Loading…
Reference in New Issue