diff options
author | Stan Hu <stanhu@gmail.com> | 2018-09-10 00:04:11 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-09-11 08:41:53 +0300 |
commit | ced2a932d75272e25f172b879b08de2208ce4b5c (patch) | |
tree | 6e05813f0d28d3ccf110823ec128d7257813a5c1 /lib | |
parent | 2f990e3408d00cad473d8dcf8a4e49155cc3cc33 (diff) |
Add ability to skip user email confirmation with API
This gives admins the ability to send a `skip_confirmation` flag in the
`POST /users/:id/email` API endpoint to skip the verification step and
assume the given e-mail address is verified.
Closes #50876
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/users.rb | 1 |
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! |