mirror of
https://github.com/langgenius/dify.git
synced 2026-04-30 05:06:29 +08:00
feat: change login no count redirect
This commit is contained in:
parent
1ae966792a
commit
34cd7b9aa0
@ -45,8 +45,10 @@ 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}&email={args['email']}")
|
return redirect(
|
||||||
|
location=f"{dify_config.CONSOLE_WEB_URL}/reset-password/check-code?token={token}&email={args['email']}",
|
||||||
|
code=307
|
||||||
|
)
|
||||||
# SELF_HOSTED only have one workspace
|
# SELF_HOSTED only have one workspace
|
||||||
tenants = TenantService.get_join_tenants(account)
|
tenants = TenantService.get_join_tenants(account)
|
||||||
if len(tenants) == 0:
|
if len(tenants) == 0:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user