Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2018-09-11 19:20:37 +0300
committerRobert Speicher <robert@gitlab.com>2018-09-11 19:20:37 +0300
commite68ebdfb4e719a7711ff7e2650707a99e2352321 (patch)
treed20497503a2af0650ac89a185b96573a85c92f0a /lib
parentb21625a9783e75365a309a8e48b06a1494fc3680 (diff)
parentced2a932d75272e25f172b879b08de2208ce4b5c (diff)
Merge branch 'sh-support-adding-confirmed-emails' into 'master'
Add ability to skip user email confirmation with API Closes #50876 See merge request gitlab-org/gitlab-ce!21630
Diffstat (limited to 'lib')
-rw-r--r--lib/api/users.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb
index b0811bb4aad..a4ae597e252 100644
--- a/lib/api/users.rb
+++ b/lib/api/users.rb
@@ -361,6 +361,7 @@ module API
params do
requires :id, type: Integer, desc: 'The ID of the user'
requires :email, type: String, desc: 'The email of the user'
+ optional :skip_confirmation, type: Boolean, desc: 'Skip confirmation of email and assume it is verified'
end
post ":id/emails" do
authenticated_as_admin!