Fixed set of user for basic auth.

This commit is contained in:
Martin Edenhofer 2013-07-27 00:49:22 +02:00
parent 6eceb229eb
commit a04b79621d

View file

@ -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 {