diff options
author | Stan Hu <stanhu@gmail.com> | 2015-05-02 16:53:32 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-05-02 19:36:52 +0300 |
commit | eb4f1eb5f55fe3630c9191db1b9da2dc92437391 (patch) | |
tree | 6aab55f8ab6f46e3126fff4f4e7ae36712cec0f7 /db/migrate/20150502064022_add_restricted_signup_domains_to_application_settings.rb | |
parent | cfbff017d0ba1ba4fd896b4762b23853f123c60a (diff) |
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 'db/migrate/20150502064022_add_restricted_signup_domains_to_application_settings.rb')
-rw-r--r-- | db/migrate/20150502064022_add_restricted_signup_domains_to_application_settings.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20150502064022_add_restricted_signup_domains_to_application_settings.rb b/db/migrate/20150502064022_add_restricted_signup_domains_to_application_settings.rb new file mode 100644 index 00000000000..184e2653610 --- /dev/null +++ b/db/migrate/20150502064022_add_restricted_signup_domains_to_application_settings.rb @@ -0,0 +1,5 @@ +class AddRestrictedSignupDomainsToApplicationSettings < ActiveRecord::Migration + def change + add_column :application_settings, :restricted_signup_domains, :text + end +end |