MANIKANDAN A commited on
Commit
e80505d
·
1 Parent(s): 173a9b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -72,7 +72,7 @@ def login():
72
  cursor.execute("SELECT * FROM users WHERE username = ?", (username,))
73
  user = cursor.fetchone()
74
 
75
- if user and new_password:
76
  st.success("Login successful!")
77
  st.write(f"You are logged in as: {user[1]}")
78
  st.session_state.username = username
 
72
  cursor.execute("SELECT * FROM users WHERE username = ?", (username,))
73
  user = cursor.fetchone()
74
 
75
+ if user and password:
76
  st.success("Login successful!")
77
  st.write(f"You are logged in as: {user[1]}")
78
  st.session_state.username = username