Creating a user with an empty password will send an email to let him set his password...
authorJohn Livingston <38844060+JohnXLivingston@users.noreply.github.com>
Mon, 17 Feb 2020 09:16:52 +0000 (10:16 +0100)
committerGitHub <noreply@github.com>
Mon, 17 Feb 2020 09:16:52 +0000 (10:16 +0100)
commit45f1bd72a08998c60a9dd68ff069cea9de39161c
tree79e484bd7fd38fe97c84fdb00a164534f43941e9
parentc5621bd23bce038671cd81149a0aa5e238558b67
Creating a user with an empty password will send an email to let him set his password (#2479)

* Creating a user with an empty password will send an email to let him set his password

* Consideration of Chocobozzz's comments

* Tips for optional password

* API documentation

* Fix circular imports

* Tests
14 files changed:
client/src/app/+admin/users/user-edit/user-create.component.ts
client/src/app/+admin/users/user-edit/user-edit.component.html
client/src/app/+admin/users/user-edit/user-update.component.ts
client/src/app/+admin/users/users.routes.ts
client/src/app/shared/forms/form-validators/user-validators.service.ts
server/controllers/api/users/index.ts
server/helpers/custom-validators/users.ts
server/initializers/constants.ts
server/lib/emailer.ts
server/lib/redis.ts
server/middlewares/validators/users.ts
server/tests/api/check-params/users.ts
server/tests/api/server/email.ts
support/doc/api/openapi.yaml