fix authenticate_user method
This commit is contained in:
parent
80cd7bcd52
commit
0000487cf8
|
@ -55,6 +55,8 @@ class ApplicationController < ActionController::Base
|
||||||
def authenticate_user
|
def authenticate_user
|
||||||
if user = find_user_by_token
|
if user = find_user_by_token
|
||||||
sign_in user, store: false
|
sign_in user, store: false
|
||||||
|
else
|
||||||
|
super
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue