summaryrefslogtreecommitdiff
path: root/app/controllers/sessions_controller.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-05-04 14:18:32 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-05-09 17:31:40 -0400
commit125ee5262a65db71fc8ba2d7a51885039b5ccc1f (patch)
treeb6e7ee52acbd8843c64572f9c08e8a276c215f4a /app/controllers/sessions_controller.rb
parentc84f1240d4dd72b53361d3cc0bccf5c7d789c8ec (diff)
downloadgitlab-ce-125ee5262a65db71fc8ba2d7a51885039b5ccc1f.tar.gz
Don't use hard-coded sign_in path
Diffstat (limited to 'app/controllers/sessions_controller.rb')
-rw-r--r--app/controllers/sessions_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
index e72b003f86f..8bd8fbb692f 100644
--- a/app/controllers/sessions_controller.rb
+++ b/app/controllers/sessions_controller.rb
@@ -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