summaryrefslogtreecommitdiff
path: root/app/views/admin
diff options
context:
space:
mode:
authorDravere <floriangraf@gmx.ch>2016-07-06 19:46:41 +0200
committerDravere <floriangraf@gmx.ch>2016-07-07 19:21:18 +0200
commita0a9494e4e6db3cfcdecae0a7e9c2877432fa30b (patch)
treed9a0ef27d88d3c5ae6492ddede5827f98633bd03 /app/views/admin
parent062c7a30742d617d8d0939c3bb6ba733919fe00b (diff)
downloadgitlab-ce-a0a9494e4e6db3cfcdecae0a7e9c2877432fa30b.tar.gz
Added setting to set new users by default as external
As requested by the issue #14508 this adds an option in the application settings to set newly registered users by default as external. The default setting is set to false to stay backward compatible.
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/application_settings/_form.html.haml7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/admin/application_settings/_form.html.haml b/app/views/admin/application_settings/_form.html.haml
index eb325576e4f..8de28528cda 100644
--- a/app/views/admin/application_settings/_form.html.haml
+++ b/app/views/admin/application_settings/_form.html.haml
@@ -100,6 +100,13 @@
= f.label :user_oauth_applications do
= f.check_box :user_oauth_applications
Allow users to register any application to use GitLab as an OAuth provider
+ .form-group
+ = f.label :user_default_external, 'New users set to external', class: 'control-label col-sm-2'
+ .col-sm-10
+ .checkbox
+ = f.label :user_default_external do
+ = f.check_box :user_default_external
+ Newly registered users will by default be external
%fieldset
%legend Sign-in Restrictions