naotakigawa commited on
Commit
3685670
·
1 Parent(s): d721b27

Update common.py

Browse files
Files changed (1) hide show
  1. common.py +3 -3
common.py CHANGED
@@ -9,8 +9,8 @@ logger.debug("調査用ログ")
9
 
10
  #ログインの確認
11
  def check_login():
12
- value = stx.CookieManager().get_all()
13
- logger.info(value)
14
- if value is None:
15
  st.warning("**ログインしてください**")
16
  st.stop()
 
9
 
10
  #ログインの確認
11
  def check_login():
12
+ if 'authentication_status' not in st.session_state:
13
+ st.session_state['authentication_status'] = None
14
+ if st.session_state["authentication_status"] is None or False:
15
  st.warning("**ログインしてください**")
16
  st.stop()