Tejasva-Maurya commited on
Commit
06b3f66
·
verified ·
1 Parent(s): f866fa6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = 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,7 +150,7 @@ def login():
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":
 
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":