From 34c97d686d151cd49f787df799b307002c4bce95 Mon Sep 17 00:00:00 2001 From: Joe <1264204425@qq.com> Date: Thu, 26 Sep 2024 11:28:10 +0800 Subject: [PATCH] chore: change password type --- api/controllers/console/auth/login.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/controllers/console/auth/login.py b/api/controllers/console/auth/login.py index f574e7f998..53278f44bd 100644 --- a/api/controllers/console/auth/login.py +++ b/api/controllers/console/auth/login.py @@ -19,7 +19,6 @@ from controllers.console.error import NotAllowedCreateWorkspace, NotAllowedRegis from controllers.console.setup import setup_required from events.tenant_event import tenant_was_created from libs.helper import email, get_remote_ip -from libs.password import valid_password from models.account import Account from services.account_service import AccountService, TenantService from services.errors.workspace import WorkSpaceNotAllowedCreateError @@ -33,7 +32,7 @@ class LoginApi(Resource): """Authenticate user and login.""" parser = reqparse.RequestParser() parser.add_argument("email", type=email, required=True, location="json") - parser.add_argument("password", type=valid_password, required=True, location="json") + parser.add_argument("password", type=str, required=True, location="json") parser.add_argument("remember_me", type=bool, required=False, default=False, location="json") args = parser.parse_args()