瀏覽代碼

bug fix: syntax error on conditional

control 3 年之前
父節點
當前提交
79513adb96
共有 6 個文件被更改,包括 1 次插入1 次删除
  1. 二進制
      app/database.db
  2. 1 1
      app/logic.py
  3. 二進制
      app/static/defaults/jerry.png
  4. 0 0
      app/static/defaults/tom.png
  5. 二進制
      app/static/uploads/Get2AbfDB6cqzaJG.png
  6. 二進制
      app/static/uploads/ljqeDhr9dbs7ThAI.jpeg

二進制
app/database.db


+ 1 - 1
app/logic.py

@@ -259,7 +259,7 @@ def register():
         else:
             flash('Gender must be either M or F!', category='error')
 
-        if len(passwd_1) =< 12 or len(passwd_2) =< 12:
+        if len(passwd_1) < 12 or len(passwd_2) < 12:
             flash('Your Password must be longer than or equal to 12 characters.', category='error')
         else:
             if passwd_1 != passwd_2:

二進制
app/static/defaults/jerry.png


+ 0 - 0
app/static/uploads/TNFyxJlF6m31qG6T.png → app/static/defaults/tom.png


二進制
app/static/uploads/Get2AbfDB6cqzaJG.png


二進制
app/static/uploads/ljqeDhr9dbs7ThAI.jpeg