Skip to content

Commit

Permalink
Redirect to the requested URL after login with Google (fixes #41)
Browse files Browse the repository at this point in the history
  • Loading branch information
waj committed Sep 19, 2019
1 parent 03b3607 commit bc30c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/devise/shared/_omniauth_links.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- if devise_mapping.omniauthable?
- resource_class.omniauth_providers.each do |provider|
- origin = session[:last_oidreq] ? '/openid/login' : nil
- origin = session[:last_oidreq] ? '/openid/login' : session[:user_return_to]
- if provider.to_s == 'google'
= link_to "", omniauth_authorize_path(resource_name, provider, origin: origin), class: provider.to_s
- else
Expand Down

0 comments on commit bc30c4b

Please sign in to comment.