浏览代码

Fix bank login

Eren Yilmaz 6 年之前
父节点
当前提交
1e62d6f1d2
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      server_controller.py

+ 4 - 1
server_controller.py

@@ -23,7 +23,10 @@ def missing_attributes(attributes):
 
 
 def login():
-    missing = missing_attributes(['username', 'password'])
+    if debug:
+        missing = missing_attributes(['username'])
+    else:
+        missing = missing_attributes(['username', 'password'])
     if missing:
         return bad_request(missing)
     username = request.json['username']