Don't error if we fail to get SReg and/or AX data from OpenID
This commit is contained in:
parent
c940313823
commit
da572b90c7
1 changed files with 4 additions and 0 deletions
|
@ -539,6 +539,10 @@ private
|
||||||
failed_login t('user.login.auth failure')
|
failed_login t('user.login.auth failure')
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
# Guard against not getting any extension data
|
||||||
|
sreg = Hash.new if sreg.nil?
|
||||||
|
ax = Hash.new if ax.nil?
|
||||||
|
|
||||||
# We don't have a user registered to this OpenID, so redirect
|
# We don't have a user registered to this OpenID, so redirect
|
||||||
# to the create account page with username and email filled
|
# to the create account page with username and email filled
|
||||||
# in if they have been given by the OpenID provider through
|
# in if they have been given by the OpenID provider through
|
||||||
|
|
Loading…
Add table
Reference in a new issue