Merge pull request #2619 from bennettscience/master

fixes redirect loop
This commit is contained in:
Stella Rouzi 2020-01-07 00:03:44 +02:00 committed by GitHub
commit 3d74ba4742
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -35,8 +35,7 @@ module Users
openid.save!
sign_in user
redirect_to request.env['omniauth.origin'] || root_path,
notice: "#{user.email} signed in successfully with #{provider}"
redirect_to root_path, notice: "#{user.email} signed in successfully with #{provider}"
rescue => e
flash[:error] = e.message
redirect_back_or_to new_user_registration_path

View file

@ -27,7 +27,7 @@
.row
.col-md-3
%h3
- if event.speakers.any?
- if @event.speakers.any?
Presented by:
- @speakers_ordered.each do |speaker|
.speakerinfo