Browse Source

fix str len validate

ilya_shyian 1 year ago
parent
commit
ba54b57e30
1 changed files with 1 additions and 1 deletions
  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"))