Don't reset the session when the token refers to an invalid user
During account creation it is quite normal for the token in the session to refer to a user that is not active yet.
This commit is contained in:
parent
5bc3054d61
commit
9e2132b83d
1 changed files with 0 additions and 2 deletions
|
@ -40,8 +40,6 @@ class ApplicationController < ActionController::Base
|
|||
elsif session[:token]
|
||||
if @user = User.authenticate(:token => session[:token])
|
||||
session[:user] = @user.id
|
||||
else
|
||||
reset_session
|
||||
end
|
||||
end
|
||||
rescue Exception => ex
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue