summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@gitlab.com>2015-02-05 16:47:11 +0000
committerDmitriy Zaporozhets <dzaporozhets@gitlab.com>2015-02-05 16:47:11 +0000
commit50e8e5943f182c65be1ef7777d06869029886d8e (patch)
treeff1629bfc6319348d3ec04a65ce6c8290b42af23 /app
parent31323205bcc3ed663e7a1c5be4c5e5bd5b9ec5a6 (diff)
parentab22caa97e4c1d749f1acfa344c0b1c91eba598b (diff)
downloadgitlab-ce-50e8e5943f182c65be1ef7777d06869029886d8e.tar.gz
Merge branch 'redirect-sign_up' into 'master'
Redirect signup page to signin page. Resolves #1916. See merge request !1468
Diffstat (limited to 'app')
-rw-r--r--app/controllers/registrations_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb
index 97aa2d9bdb4..38d116a4ee3 100644
--- a/app/controllers/registrations_controller.rb
+++ b/app/controllers/registrations_controller.rb
@@ -1,6 +1,10 @@
class RegistrationsController < Devise::RegistrationsController
before_filter :signup_enabled?
+ def new
+ redirect_to(new_user_session_path)
+ end
+
def destroy
current_user.destroy