Makes AuthSource.authenticate return a hash instead of an array.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3492 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2010-02-26 09:13:12 +00:00
parent f1d16bc007
commit d6f9e576e8
4 changed files with 12 additions and 14 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ class User < Principal
# user is not yet registered, try to authenticate with available sources
attrs = AuthSource.authenticate(login, password)
if attrs
user = new(*attrs)
user = new(attrs)
user.login = login
user.language = Setting.default_language
if user.save