Send Password Reset Email to Approved Users when User Caps are Enabled
What does this MR do and why?
Send a password reset email to new users created by an admin when the instance has a user cap set.
Issue: #375361 (closed)
Screenshots or screen recordings
Videos for multiple scenarios are included to give greater context around the changes introduced by this MR. The changes introduced by this MR are highlighted below.
Without a User Cap
An admin creates a user
- The user receives a password reset email
A user signs up
The user receives an email confirmation email due to local settings. This can be turned off. The important point is the user receives neither a password reset nor a welcome email.
With a User Cap Set But Not Exceeded
An admin creates a user
The user receives a...
- Welcome email
- Password reset email (
➕ added by this MR)
A user signs up
The user receives a...
- Welcome email
The user in the video also receives an email confirmation email, because that is enabled locally. However, the user does not receive a password reset email.
With an Exceeded User Cap
An admin creates a user
AdminCreatesUserWithCapExceeded
The user receives no email. This makes sense, because the user is pending approval.
And admin approves a pending user created by an admin
The user receives a...
- Welcome email
- Password reset email (
➕ added by this MR)
A user signs up
The user receives no email
An admin approves a user who signed up
The user receives a...
- Welcome email
In the video, the user also receives an email confirmation email, however, the user does not receive a password reset email.
An admin increases the user cap and auto approves users
AdminIncreasesUserCapDemo-small
Once the user cap is increased, a user created by the admin receives...
- A welcome email
- A password reset email (
➕ added by this MR)
And a user who signed up receives...
- A welcome email
- (And an email confirmation email, but this is due to local settings)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.