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()