IsaacKerson commited on
Commit
c72c7ac
·
unverified ·
1 Parent(s): eadf223

try auth fuction in login page

Browse files
Files changed (1) hide show
  1. pages/login.py +10 -9
pages/login.py CHANGED
@@ -32,12 +32,13 @@ def app():
32
  st.write(auth.get_path())
33
  st.write(auth.get_connection())
34
  st.write(auth.check_connection())
35
- # auth.login('Login', 'main')
36
-
37
- # if st.session_state['authentication_status']:
38
- # auth.logout('Logout', 'main')
39
- # st.title('Some content')
40
- # elif st.session_state['authentication_status'] == False:
41
- # st.error('Username/password is incorrect')
42
- # elif st.session_state['authentication_status'] == None:
43
- # st.warning('Please enter your username and password')
 
 
32
  st.write(auth.get_path())
33
  st.write(auth.get_connection())
34
  st.write(auth.check_connection())
35
+
36
+ auth.login('Login', 'main')
37
+
38
+ if st.session_state['authentication_status']:
39
+ auth.logout('Logout', 'main')
40
+ st.title('Some content')
41
+ elif st.session_state['authentication_status'] == False:
42
+ st.error('Username/password is incorrect')
43
+ elif st.session_state['authentication_status'] == None:
44
+ st.warning('Please enter your username and password')