OpenID attributes returned via AX seem to be arrays now
This commit is contained in:
parent
a770d020f9
commit
d38e476fa6
1 changed files with 2 additions and 2 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue