From 1ae966792a8df38ed16617cf4bdcd94bcf930ac8 Mon Sep 17 00:00:00 2001 From: Joe <1264204425@qq.com> Date: Tue, 3 Sep 2024 18:23:35 +0800 Subject: [PATCH] feat: update reset-password redirect url --- api/controllers/console/auth/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controllers/console/auth/login.py b/api/controllers/console/auth/login.py index 75c9bf6a60..055882411c 100644 --- a/api/controllers/console/auth/login.py +++ b/api/controllers/console/auth/login.py @@ -45,7 +45,7 @@ class LoginApi(Resource): raise NotAllowedCreateWorkspace() token = AccountService.send_reset_password_email(email=args["email"]) - return redirect(f"{dify_config.CONSOLE_WEB_URL}/reset-password?token={token}") + return redirect(f"{dify_config.CONSOLE_WEB_URL}/reset-password?token={token}&email={args['email']}") # SELF_HOSTED only have one workspace tenants = TenantService.get_join_tenants(account)