rafatjah commited on
Commit
38296ed
Β·
1 Parent(s): 9e34a83

Admin password minimum requirement

Browse files
Files changed (1) hide show
  1. home.py +3 -1
home.py CHANGED
@@ -48,7 +48,9 @@ def join_poll(poll_name, admin_password=""):
48
  def new_poll(poll_name, admin_password):
49
  if not is_valid_new_poll(poll_name):
50
  return
51
-
 
 
52
  poll = {
53
  "name": poll_name,
54
  "admin_password": admin_password,
 
48
  def new_poll(poll_name, admin_password):
49
  if not is_valid_new_poll(poll_name):
50
  return
51
+ if len(admin_password) < 8:
52
+ st.error("Admin password must be at least 8 characters")
53
+ return
54
  poll = {
55
  "name": poll_name,
56
  "admin_password": admin_password,