firebase / FirebaseUI-iOS

iOS UI bindings for Firebase.
Apache License 2.0
1.5k stars 467 forks source link

Login with existing email/password account issue. #1180

Open eanicolas1 opened 5 months ago

eanicolas1 commented 5 months ago

The following issue happens for the newest versions of iOS (13.1.0, Swift, Firebase newest version as of 2024/01/30) and Android (8.0.2, Kotlin, Firebase BOM 32.7.1 (newest version)).

If you click login with email and then enter an email that already exists as Firebase email/password account, the next view is the account creation view (where you have to enter a name and new password) and not the login screen (where you could enter your existing password). Then if you click "save" top right the message appears, that the email is already linked to an existing account.

This is a new problem since this worked some days ago. Important to add, that we tried this with several email/password accounts and none was linked to another authentication provider. We also created new accounts to check this issue and it also happens for them.

This is the code to open the Firebase Auth UI for Swift: let authUI = FUIAuth.defaultAuthUI() authUI.delegate = self let providers: [FUIAuthProvider] = [ FUIOAuth.appleAuthProvider(), FUIGoogleAuth(authUI: authUI), FUIEmailAuth()] authUI.providers = providers authUI.shouldAutoUpgradeAnonymousUsers = false present(authUI.authViewController(), animated: true)

Any help would be appreciated a lot.

eanicolas1 commented 5 months ago

I found the reason: It's due to "email enumeration protection". If this setting is activated in Authentication settings, the problem occurs. 1) Is there a possibility to have this feature enabled without facing this problem? 2) You should mention this problem somewhere. I'm sure many other users will also come across this.