mirror of
https://github.com/discourse/discourse.git
synced 2025-03-07 11:15:32 +08:00

When hide_email_address_taken was disabled, the forgot password modal showed a flash message and continued to display the form causing confusion. This change shows the flash message only when an error occurs and in all other cases it shows a success message and hides the form.