summaryrefslogtreecommitdiffstats
path: root/app/controllers/account_controller.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2009-02-11 19:07:23 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2009-02-11 19:07:23 +0000
commit876fb69271edf6b5d7fe15fc68ee49e246d38f19 (patch)
tree3b33cc6c9ea32ff9e023073882fb5b7a4dddda51 /app/controllers/account_controller.rb
parent48e26aa75b415045a6b83a37cafef478b996ca8a (diff)
downloadredmine-876fb69271edf6b5d7fe15fc68ee49e246d38f19.tar.gz
redmine-876fb69271edf6b5d7fe15fc68ee49e246d38f19.zip
Added tests for the other OpenID authentication cases. #699
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2445 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/account_controller.rb')
-rw-r--r--app/controllers/account_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb
index cdbca5927..09c11927c 100644
--- a/app/controllers/account_controller.rb
+++ b/app/controllers/account_controller.rb
@@ -201,9 +201,9 @@ private
user = User.find_or_initialize_by_identity_url(identity_url)
if user.new_record?
# Create on the fly
- user.login = registration['nickname']
- user.mail = registration['email']
- user.firstname, user.lastname = registration['fullname'].split(' ')
+ user.login = registration['nickname'] unless registration['nickname'].nil?
+ user.mail = registration['email'] unless registration['email'].nil?
+ user.firstname, user.lastname = registration['fullname'].split(' ') unless registration['fullname'].nil?
user.random_password
if user.save
successful_authentication(user)