Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -115,7 +115,7 @@ def register():
|
|
115 |
st.error("Unexpected error occur. Please Retry....")
|
116 |
|
117 |
if st.button("Register Using Google Account"):
|
118 |
-
user_info =
|
119 |
user_name = f'{user_info.get("user").get("displayName")}'
|
120 |
email = f'{user_info.get("user").get("emailAddress")}'
|
121 |
response = mongo_db.google_register(user_name, email)
|
@@ -150,7 +150,7 @@ def login():
|
|
150 |
else:
|
151 |
st.error("Invalid email id or password")
|
152 |
if st.button("google"):
|
153 |
-
user_info =
|
154 |
email = f'{user_info.get("user").get("emailAddress")}'
|
155 |
response = mongo_db.google_login(email)
|
156 |
if response == "Login successful":
|
|
|
115 |
st.error("Unexpected error occur. Please Retry....")
|
116 |
|
117 |
if st.button("Register Using Google Account"):
|
118 |
+
user_info = google_auth.auth()
|
119 |
user_name = f'{user_info.get("user").get("displayName")}'
|
120 |
email = f'{user_info.get("user").get("emailAddress")}'
|
121 |
response = mongo_db.google_register(user_name, email)
|
|
|
150 |
else:
|
151 |
st.error("Invalid email id or password")
|
152 |
if st.button("google"):
|
153 |
+
user_info = google_auth.auth()
|
154 |
email = f'{user_info.get("user").get("emailAddress")}'
|
155 |
response = mongo_db.google_login(email)
|
156 |
if response == "Login successful":
|