mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 03:36:36 +08:00
feat: update reset-password redirect url
This commit is contained in:
parent
a7b6a24151
commit
1ae966792a
@ -45,7 +45,7 @@ class LoginApi(Resource):
|
|||||||
raise NotAllowedCreateWorkspace()
|
raise NotAllowedCreateWorkspace()
|
||||||
|
|
||||||
token = AccountService.send_reset_password_email(email=args["email"])
|
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
|
# SELF_HOSTED only have one workspace
|
||||||
tenants = TenantService.get_join_tenants(account)
|
tenants = TenantService.get_join_tenants(account)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user