Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,15 +32,15 @@ if role == "Master":
|
|
| 32 |
if not st.session_state.master_logged_in:
|
| 33 |
username = st.text_input("Tài khoản")
|
| 34 |
password = st.text_input("Mật khẩu", type="password")
|
| 35 |
-
|
| 36 |
if st.button("Đăng nhập"):
|
| 37 |
if username == "master" and password == "master":
|
| 38 |
st.session_state.master_logged_in = True
|
| 39 |
st.success("Đăng nhập thành công!")
|
| 40 |
-
st.
|
| 41 |
else:
|
| 42 |
st.error("Sai tài khoản hoặc mật khẩu")
|
| 43 |
-
|
| 44 |
|
| 45 |
# Dashboard for Master
|
| 46 |
st.success("Bạn đang đăng nhập với quyền Master")
|
|
|
|
| 32 |
if not st.session_state.master_logged_in:
|
| 33 |
username = st.text_input("Tài khoản")
|
| 34 |
password = st.text_input("Mật khẩu", type="password")
|
| 35 |
+
|
| 36 |
if st.button("Đăng nhập"):
|
| 37 |
if username == "master" and password == "master":
|
| 38 |
st.session_state.master_logged_in = True
|
| 39 |
st.success("Đăng nhập thành công!")
|
| 40 |
+
st.stop() # <-- Thay experimental_rerun
|
| 41 |
else:
|
| 42 |
st.error("Sai tài khoản hoặc mật khẩu")
|
| 43 |
+
|
| 44 |
|
| 45 |
# Dashboard for Master
|
| 46 |
st.success("Bạn đang đăng nhập với quyền Master")
|