WT1.1.2f login fix

This commit is contained in:
bossanyit
2020-10-30 07:49:39 +01:00
parent 8f651ceb0d
commit cffc397d70
11 changed files with 232 additions and 142 deletions
+7 -1
View File
@@ -73,7 +73,13 @@ class FirebaseApi {
} else if (e.code == 'email-already-in-use') {
print('The account already exists for that email.');
rc = REGISTER_EMAIL_IN_USE;
throw Exception("Customer exists");
userCredential = await FirebaseAuth.instance.signInWithEmailAndPassword(
email: email,
password: password
);
if ( rc != null ) {
String rc = SIGN_IN_OK;
}
}
} catch (e) {
print(e);