From: Tom Hughes Date: Tue, 14 Jun 2011 23:07:32 +0000 (+0100) Subject: Don't error if we fail to get SReg and/or AX data from OpenID X-Git-Tag: live~6257 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/da572b90c7c7d10f32f7fd751b9eee4060ce866b?ds=sidebyside Don't error if we fail to get SReg and/or AX data from OpenID --- diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index d380e4c7b..b337dc04c 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -539,6 +539,10 @@ private failed_login t('user.login.auth failure') end 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 # to the create account page with username and email filled # in if they have been given by the OpenID provider through