gitlab-org--gitlab-foss/config/initializers
Dmitriy Zaporozhets 0df317f729 Merge branch 'restrict-signups-to-domains' into 'master'
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 prone to mistakes.

Also note that validation is ONLY done on creation to prevent breaking existing users who do not have a whitelisted domain. However, this allows a user to sign-up and change his/her email to a non-whitelisted domain.

Screenshots:

![image](https://gitlab.com/gitlab-org/gitlab-ce/uploads/b312046aae03971f37f4247382971fc6/image.png)

![image](https://gitlab.com/gitlab-org/gitlab-ce/uploads/94bdf3ffaf37c2e8324eff83308f81f0/image.png)

See merge request !598
2015-05-03 10:02:45 +00:00
..
1_settings.rb Add application setting to restrict user signups to e-mail domains 2015-05-02 09:36:52 -07:00
2_app.rb Revert "Preload lib/" 2015-04-09 12:21:59 -04:00
3_grit_ext.rb Remove python from installation docs 2014-01-30 19:48:47 +02:00
4_sidekiq.rb Remove sidekiq-limit_fetch because it require Redis 2.6. 2015-04-03 18:38:31 +02:00
5_backend.rb Warn when gitlab-shell version doesn't match requirement. 2015-04-06 14:02:49 +02:00
6_rack_profiler.rb Fix two places where we should be using Rails.env.development? 2015-04-20 18:28:19 -04:00
7_omniauth.rb Rubocop: no trailing newlines 2015-02-02 21:53:27 -08:00
8_default_url_options.rb Set default_url_options in test environments too 2015-04-25 19:46:05 -04:00
backtrace_silencers.rb
carrierwave.rb Rubocop: comment indentation 2015-02-02 21:34:16 -08:00
devise.rb Make Reply-To config apply to change e-mail confirmation and other notifications 2015-05-01 22:57:10 -07:00
devise_async.rb Send devise emails async 2013-10-09 15:25:31 +03:00
devise_password_length.rb.example Add instructions for custom password length limits 2014-01-13 10:41:10 +01:00
disable_email_interceptor.rb Add email interceptor to prevent mail sending if email sending is disabled. 2014-10-27 13:05:50 +01:00
doorkeeper.rb Fix Resource Owner Password Authentication Flow 2015-04-17 11:47:02 -05:00
gitlab_shell_secret_token.rb Rubocop: no trailing newlines 2015-02-02 21:53:27 -08:00
haml.rb Enable HAML ugly mode by default for all environments 2013-05-14 22:17:46 +03:00
inflections.rb Add an inflector to mark "commits" as uncountable 2012-09-26 16:32:23 -04:00
kaminari_config.rb
mime_types.rb Add Markdown to Mime types 2015-04-15 12:25:24 -04:00
postgresql_limit_fix.rb patch rails to ignore text limit 2012-10-10 13:17:48 +04:00
public_key.rb Fix typo. 2015-03-20 16:13:03 -07:00
rack_attack.rb.example Create one big regular expresion for Rack::Attack 2014-08-22 09:56:39 +02:00
rack_attack_git_basic_auth.rb Add more comments explaining how we block IPs 2014-12-18 11:08:11 +01:00
redis-store-fix-expiry.rb Another comment fix 2014-12-16 12:46:55 +01:00
secret_token.rb Allow to specify secret token via environment variable. 2014-04-15 19:27:25 +01:00
session_store.rb Merge branch 'redis_settings' 2014-08-28 15:03:22 +03:00
smtp_settings.rb.sample Add link to smtp documentation. 2015-03-04 09:04:23 -08:00
state_machine_patch.rb Rename snippets scopes to plural names. 2014-06-04 08:37:19 +02:00
static_files.rb Change check to only swap static middleware when it's enabled. 2015-02-21 15:09:17 +01:00
time_zone.rb Add timezone configuration to gitlab.yml 2014-10-21 11:27:16 +02:00
wrap_parameters.rb