Create new user → password reset link is sent to this user
Delete this newly created user
User (already deleted) clicks on a password reset link, he is allowed to set a new password and send a form → he receives error message like “Something went wrong…”
Is it possible to handle this situation better? For example, if the user is already deleted and he is trying to reset the password, display some message like “No longer valid link” or “You are not allowed to perform this operation”, etc., but BEFORE he sends the form, just right after he reaches password reset page.
I have tested your observations and successfully replicated the “Something went wrong, please try again later” error message.
This error happens when the user is deleted before resetting their password. Since the user profile is removed from the database, they won’t be able to “set a new password”.
Subsequent attempts to set a new password will result in the “This ticket was already used” error.