summaryrefslogtreecommitdiff
path: root/app/controllers/registrations_controller.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-02-05 15:56:28 +0100
committerDouwe Maan <douwe@gitlab.com>2015-02-05 15:56:28 +0100
commitab22caa97e4c1d749f1acfa344c0b1c91eba598b (patch)
treea29ac7ffa02e09d0d66695a057c7562d4588e0cc /app/controllers/registrations_controller.rb
parent56a456b43dba7d772db45e2b73aa18b5eab53d37 (diff)
downloadgitlab-ce-ab22caa97e4c1d749f1acfa344c0b1c91eba598b.tar.gz
Redirect signup page to signin page.
Resolves #1916.
Diffstat (limited to 'app/controllers/registrations_controller.rb')
-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