Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
feat: add decryption decorators for password and code fields in webapp (#30704)
Xiyuan Chenadaf0e32c0e8
diff --git a/api/controllers/web/login.py b/api/controllers/web/login.pyindex 538d0c44be7..5847f4ae3a6 100644--- a/api/controllers/web/login.py+++ b/api/controllers/web/login.py@@ -10,7 +10,12 @@ from controllers.console.auth.error import (InvalidEmailError,)from controllers.console.error import AccountBannedError-from controllers.console.wraps import only_edition_enterprise, setup_required+from controllers.console.wraps import (+ decrypt_code_field,+ decrypt_password_field,+ only_edition_enterprise,+ setup_required,+)from controllers.web import web_nsfrom controllers.web.wraps import decode_jwt_tokenfrom libs.helper import email@@ -42,6 +47,7 @@ class LoginApi(Resource):404: "Account not found",})+ @decrypt_password_fielddef post(self):"""Authenticate user and login."""parser = (@@ -181,6 +187,7 @@ class EmailCodeLoginApi(Resource):404: "Account not found",})+ @decrypt_code_fielddef post(self):parser = (reqparse.RequestParser()