From 6a37ce858e6435bba8372e1920ec0ce496841d11 Mon Sep 17 00:00:00 2001 From: Rafael <1024481@stud.hs-mannheim.de> Date: Tue, 30 Apr 2024 22:28:14 +0200 Subject: [PATCH] Removed Testcode --- lib/services/auth/auth_service.dart | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/services/auth/auth_service.dart b/lib/services/auth/auth_service.dart index 40bca84..6067130 100644 --- a/lib/services/auth/auth_service.dart +++ b/lib/services/auth/auth_service.dart @@ -11,7 +11,7 @@ class AuthService { return _auth.currentUser; } - //sign in + // sign in Future signInWithEmailPassword(String email, password) async { try { UserCredential userCredential = await _auth.signInWithEmailAndPassword( @@ -19,15 +19,6 @@ class AuthService { password: password, ); - // save user info if it does not already exist - // TODO TESTING - same code snippet as for sign up - _firestore.collection("Users").doc(userCredential.user!.uid).set( - { - 'uid': userCredential.user!.uid, - 'email': email, - }, - ); - return userCredential; } on FirebaseAuthException catch (e) { throw Exception(e.code);