Fixed set of user for basic auth.
This commit is contained in:
parent
6eceb229eb
commit
a04b79621d
1 changed files with 3 additions and 3 deletions
|
@ -110,12 +110,12 @@ class ApplicationController < ActionController::Base
|
|||
message = 'authentication failed'
|
||||
end
|
||||
|
||||
# remember user
|
||||
session[:user_id] = userdata.id
|
||||
|
||||
# return auth ok
|
||||
if message == ''
|
||||
|
||||
# remember user
|
||||
session[:user_id] = userdata.id
|
||||
|
||||
# set basic auth user to current user
|
||||
current_user_set(userdata)
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue