Add optional signup.
This commit is contained in:
parent
b07e1b3aed
commit
296cdd591f
14 changed files with 125 additions and 25 deletions
9
app/controllers/registrations_controller.rb
Normal file
9
app/controllers/registrations_controller.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
class RegistrationsController < Devise::RegistrationsController
|
||||
before_filter :signup_enabled?
|
||||
|
||||
private
|
||||
|
||||
def signup_enabled?
|
||||
redirect_to new_user_session_path unless Gitlab.config.gitlab.signup_enabled
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue