Przeglądaj źródła

fix str len validate

ilya_shyian 1 rok temu
rodzic
commit
ba54b57e30
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      store_back/apps/authAPI/schema.py

+ 1 - 1
store_back/apps/authAPI/schema.py

@@ -149,7 +149,7 @@ class UserUpsert(graphene.Mutation):
         ava = None
         acl = []
 
-        if "password" in user and len(user["password"] < 3):
+        if "password" in user and len(user["password"]) < 3:
             raise Exception("Не вірні дані (пароль)")
         elif "password" in user:
             password = str(user.pop("password"))