Merge pull request #2619 from bennettscience/master
fixes redirect loop
This commit is contained in:
commit
3d74ba4742
2 changed files with 2 additions and 3 deletions
|
|
@ -35,8 +35,7 @@ module Users
|
||||||
openid.save!
|
openid.save!
|
||||||
|
|
||||||
sign_in user
|
sign_in user
|
||||||
redirect_to request.env['omniauth.origin'] || root_path,
|
redirect_to root_path, notice: "#{user.email} signed in successfully with #{provider}"
|
||||||
notice: "#{user.email} signed in successfully with #{provider}"
|
|
||||||
rescue => e
|
rescue => e
|
||||||
flash[:error] = e.message
|
flash[:error] = e.message
|
||||||
redirect_back_or_to new_user_registration_path
|
redirect_back_or_to new_user_registration_path
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
.row
|
.row
|
||||||
.col-md-3
|
.col-md-3
|
||||||
%h3
|
%h3
|
||||||
- if event.speakers.any?
|
- if @event.speakers.any?
|
||||||
Presented by:
|
Presented by:
|
||||||
- @speakers_ordered.each do |speaker|
|
- @speakers_ordered.each do |speaker|
|
||||||
.speakerinfo
|
.speakerinfo
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue