firebase / FirebaseUI-Flutter

Apache License 2.0
107 stars 99 forks source link

fix(firebase_ui_auth): `sendPasswordResetEmail` should not be executed when `isLoading=true` #315

Closed kzrnm closed 6 months ago

kzrnm commented 7 months ago

Description

Even when ForgotPasswordView has isLoading=true, sendPasswordResetEmail is executed the number of times the button is pressed. I don't see any advantage for users to receive more than one email.

In this PR, if isLoading is true, the mail is not sent.

Related Issues

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?