Show the correct reconfirm link for OpenID login attempts
authorTom Hughes <tom@compton.nu>
Fri, 27 Jul 2012 20:30:06 +0000 (21:30 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 27 Jul 2012 20:30:06 +0000 (21:30 +0100)
app/controllers/user_controller.rb

index 6ce14876338b103093f7848bf7cb92706d12ac0e..443c433a50804198c701f5492db37068116e3d4c 100644 (file)
@@ -517,7 +517,7 @@ private
         if user = User.find_by_openid_url(identity_url)
           case user.status
             when "pending" then
-              failed_login t('user.login.account not active')
+              failed_login t('user.login.account not active', :reconfirm => url_for(:action => 'confirm_resend', :display_name => user.display_name))
             when "active", "confirmed" then
               successful_login(user)
             when "suspended" then