IAMTFRMZA commited on
Commit
a4eaf13
·
verified ·
1 Parent(s): e98df8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -22
app.py CHANGED
@@ -5,28 +5,6 @@ import os
5
  import uuid
6
  import firebase_admin
7
  from firebase_admin import credentials, firestore
8
- # ------------------ Authentication ------------------
9
- VALID_USERS = {
10
- "[email protected]": "Pass.123",
11
- }
12
-
13
- def login():
14
- st.title("🔐 Login Required")
15
- email = st.text_input("Email")
16
- password = st.text_input("Password", type="password")
17
- if st.button("Login"):
18
- if VALID_USERS.get(email) == password:
19
- st.session_state.authenticated = True
20
- st.rerun()
21
- else:
22
- st.error("❌ Incorrect email or password.")
23
-
24
- if "authenticated" not in st.session_state:
25
- st.session_state.authenticated = False
26
-
27
- if not st.session_state.authenticated:
28
- login()
29
- st.stop()
30
 
31
  # 🔐 Firebase setup
32
  if not firebase_admin._apps:
 
5
  import uuid
6
  import firebase_admin
7
  from firebase_admin import credentials, firestore
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
  # 🔐 Firebase setup
10
  if not firebase_admin._apps: