youssef1214
commited on
Commit
·
f1edda6
1
Parent(s):
18937a6
Update main.py
Browse files
main.py
CHANGED
@@ -50,11 +50,7 @@ def get_reviews():
|
|
50 |
async def updateuser(request: Request):
|
51 |
json_data = await request.json()
|
52 |
if("Uid" in json_data and"email" in json_data and "password" in json_data ):
|
53 |
-
|
54 |
-
json_data["Uid"],
|
55 |
-
email=json_data["email"],
|
56 |
-
password=json_data["password"],
|
57 |
-
)
|
58 |
db.collection("users").document(json_data["Uid"]).update({"email":json_data["email"],"password":json_data["password"]})
|
59 |
return('Sucessfully updated user: {0}'.format(user.uid))
|
60 |
else:
|
|
|
50 |
async def updateuser(request: Request):
|
51 |
json_data = await request.json()
|
52 |
if("Uid" in json_data and"email" in json_data and "password" in json_data ):
|
53 |
+
user = auth.update_user( json_data["Uid"],email=json_data["email"],password=json_data["password"], )
|
|
|
|
|
|
|
|
|
54 |
db.collection("users").document(json_data["Uid"]).update({"email":json_data["email"],"password":json_data["password"]})
|
55 |
return('Sucessfully updated user: {0}'.format(user.uid))
|
56 |
else:
|