Revision 8ffc3932
src/authm_mad/one_auth_mad.rb | ||
---|---|---|
57 | 57 |
driver=Kernel.const_get(driver_name.to_sym) |
58 | 58 |
@authenticate=driver.new |
59 | 59 |
|
60 |
log('-', "Using '#{driver_prefix}' driver for authentication")
|
|
60 |
STDERR.puts "Using '#{driver_prefix}' driver for authentication"
|
|
61 | 61 |
rescue |
62 |
log('-', "Driver '#{driver_prefix}' not found, "<<
|
|
63 |
"using SimpleAuth instead")
|
|
62 |
STDERR.puts "Driver '#{driver_prefix}' not found, "<<
|
|
63 |
"using SimpleAuth instead" |
|
64 | 64 |
@authenticate=SimpleAuth.new |
65 | 65 |
end |
66 | 66 |
|
... | ... | |
72 | 72 |
end |
73 | 73 |
|
74 | 74 |
def action_authenticate(request_id, user_id, user, password, token) |
75 |
STDERR.puts [user_id, user, password, token].inspect |
|
76 | 75 |
auth=@authenticate.auth(user_id, user, password, token) |
77 | 76 |
if auth==true |
78 | 77 |
send_message('AUTHENTICATE', RESULT[:success], |
Also available in: Unified diff