X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/a770d020f9cbd6fcf2934707d08d7fe35e592b9c..d38e476fa66a69285639ca4d6f94f7aa676e1d88:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index bccd5d5cb..6ce148763 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -534,8 +534,8 @@ private # to the create account page with username and email filled # in if they have been given by the OpenID provider through # the simple registration protocol. - nickname = sreg["nickname"] || ax["http://axschema.org/namePerson/friendly"] - email = sreg["email"] || ax["http://axschema.org/contact/email"] + nickname = sreg["nickname"] || ax["http://axschema.org/namePerson/friendly"].first + email = sreg["email"] || ax["http://axschema.org/contact/email"].first redirect_to :controller => 'user', :action => 'new', :nickname => nickname, :email => email, :openid => identity_url end elsif result.missing?