diff options
author | Stan Hu <stanhu@gmail.com> | 2015-05-02 06:53:32 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-05-02 09:36:52 -0700 |
commit | eb4f1eb5f55fe3630c9191db1b9da2dc92437391 (patch) | |
tree | 6aab55f8ab6f46e3126fff4f4e7ae36712cec0f7 /app/views/admin | |
parent | cfbff017d0ba1ba4fd896b4762b23853f123c60a (diff) | |
download | gitlab-ce-eb4f1eb5f55fe3630c9191db1b9da2dc92437391.tar.gz |
Add application setting to restrict user signups to e-mail domains
This feature was requested long ago:
http://feedback.gitlab.com/forums/176466-general/suggestions/4118466-ability-to-register-only-from-ceratain-domains
This MR is based off !253 but changed to use application settings and use wildcard strings
to give more flexibility in pattern matching. Regexps seemed overkill and easy to get wrong.
Only restrict e-mail addresses upon creation
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/application_settings/_form.html.haml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/admin/application_settings/_form.html.haml b/app/views/admin/application_settings/_form.html.haml index 87e7c9634e9..f6eb00ea0bd 100644 --- a/app/views/admin/application_settings/_form.html.haml +++ b/app/views/admin/application_settings/_form.html.haml @@ -72,6 +72,11 @@ = f.label :max_attachment_size, 'Maximum attachment size (MB)', class: 'control-label col-sm-2' .col-sm-10 = f.number_field :max_attachment_size, class: 'form-control' + .form-group + = f.label :restricted_signup_domains, 'Restricted domains for sign-ups', class: 'control-label col-sm-2' + .col-sm-10 + = f.text_area :restricted_signup_domains_raw, placeholder: 'domain.com', class: 'form-control' + .help-block Ex: domain.com, *.domain.com. Wildcards allowed. Use separate lines for multiple entries. .form-actions = f.submit 'Save', class: 'btn btn-primary' |