mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
fixes redirect loop
Redirecting users to `/account/sign_in` caused a redirect loop which crashed the page, but still adds them to the `users` table correctly.. Forcing users to the `root_path` solves the redirect loop.
This commit is contained in:
parent
e7d98999fb
commit
b828a9d6c6
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue