From 876fb69271edf6b5d7fe15fc68ee49e246d38f19 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Wed, 11 Feb 2009 19:07:23 +0000 Subject: 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 --- app/controllers/account_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/controllers/account_controller.rb') 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) -- cgit v1.2.3