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 /config | |
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 'config')
-rw-r--r-- | config/initializers/1_settings.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb index 0abd34fc3e0..e5ac66a2323 100644 --- a/config/initializers/1_settings.rb +++ b/config/initializers/1_settings.rb @@ -132,6 +132,7 @@ Settings.gitlab.default_projects_features['wiki'] = true if Settings.g Settings.gitlab.default_projects_features['snippets'] = false if Settings.gitlab.default_projects_features['snippets'].nil? Settings.gitlab.default_projects_features['visibility_level'] = Settings.send(:verify_constant, Gitlab::VisibilityLevel, Settings.gitlab.default_projects_features['visibility_level'], Gitlab::VisibilityLevel::PRIVATE) Settings.gitlab['repository_downloads_path'] = File.absolute_path(Settings.gitlab['repository_downloads_path'] || 'tmp/repositories', Rails.root) +Settings.gitlab['restricted_signup_domains'] ||= [] # # Gravatar |