ソースを参照

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']