mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-26 21:16:06 +10:00
Don't use hard-coded sign_in path
This commit is contained in:
@@ -16,7 +16,7 @@ class SessionsController < Devise::SessionsController
|
||||
|
||||
# Prevent a 'you are already signed in' message directly after signing:
|
||||
# we should never redirect to '/users/sign_in' after signing in successfully.
|
||||
unless redirect_path == '/users/sign_in'
|
||||
unless redirect_path == new_user_session_path
|
||||
store_location_for(:redirect, redirect_path)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user