User model should not have to clean up LDAP attributes.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3488 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2010-02-26 08:29:20 +00:00
1 parent 3de1f2e157
commit aa521c5a5a
2 files changed
+2 -3

No files matched your search

+1 -2
View File
@@ -111,8 +111,7 @@ class User < Principal
# user is not yet registered, try to authenticate with available sources
attrs = AuthSource.authenticate(login, password)
if attrs
attributes = *attrs
user = new(attributes.symbolize_keys.except(:dn))
user = new(*attrs)
user.login = login
user.language = Setting.default_language
if user.save