mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 17:23:44 +08:00
fec68d3d25
This commit is for a frequently requested task on meta so that only 1 API call is needed instead of 3! In order to create a user via the api and not have them receive an activation email you can pass in the `active=true` flag. This prevents sending an email, but it is only half of the solution and puts the db in a weird state where it has an active user with an unconfirmed email. This commit fixes that and ensures that if the `active=true` flag is set the user's email is also marked as confirmed. This change only applies to admins using the API. Related topics on meta: - https://meta.discourse.org/t/-/68663 - https://meta.discourse.org/t/-/33133 - https://meta.discourse.org/t/-/36133 |
||
---|---|---|
.. | ||
components | ||
fabricators | ||
fixtures | ||
helpers | ||
import_export | ||
initializers | ||
integration | ||
integrity | ||
jobs | ||
lib | ||
mailers | ||
models | ||
multisite | ||
requests | ||
serializers | ||
services | ||
support | ||
tasks | ||
views/omniauth_callbacks | ||
rails_helper.rb |