ifw-arz commited on
Commit
d8dcb39
1 Parent(s): a8b82d2
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -17,6 +17,7 @@ from processing.barsplots_rootcauses import check_classification
17
  from processing.cloud_access import auto_download
18
 
19
  sprint_data_folder = "Messungen"
 
20
  seafile_token = os.getenv("seafile_token")
21
 
22
 
@@ -33,7 +34,7 @@ def check_password():
33
 
34
  def password_entered():
35
  """Checks whether a password entered by the user is correct."""
36
- if hmac.compare_digest(st.session_state["password"], os.getenv("Password")):
37
  st.session_state["password_correct"] = True
38
  del st.session_state["password"] # Don't store the password.
39
  else:
 
17
  from processing.cloud_access import auto_download
18
 
19
  sprint_data_folder = "Messungen"
20
+ password = os.getenv("Password")
21
  seafile_token = os.getenv("seafile_token")
22
 
23
 
 
34
 
35
  def password_entered():
36
  """Checks whether a password entered by the user is correct."""
37
+ if hmac.compare_digest(st.session_state["password"], password):
38
  st.session_state["password_correct"] = True
39
  del st.session_state["password"] # Don't store the password.
40
  else: