Description:
allows local users
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r771:15215b7e2423 - - 1 file changed: 1 inserted, 1 deleted
@@ -69,13 +69,13 | |||||
|
69 | protected |
|
69 | protected |
|
70 |
|
70 | ||
|
71 | def get_authenticated_user(login, password) |
|
71 | def get_authenticated_user(login, password) |
|
72 | if @@authenticators.empty? |
|
72 | if @@authenticators.empty? |
|
73 | return User.authenticate(login, password) |
|
73 | return User.authenticate(login, password) |
|
74 | else |
|
74 | else |
|
75 | - user = nil |
|
75 | + user = User.authenticate(login, password) |
|
76 | @@authenticators.each do |authenticator| |
|
76 | @@authenticators.each do |authenticator| |
|
77 | if not user |
|
77 | if not user |
|
78 | user = authenticator.authenticate(login, password) |
|
78 | user = authenticator.authenticate(login, password) |
|
79 | end |
|
79 | end |
|
80 | end |
|
80 | end |
|
81 | return user |
|
81 | return user |
You need to be logged in to leave comments.
Login now