mirror of https://github.com/langgenius/dify.git
feat: change login AccountNotFound response
This commit is contained in:
parent
34cd7b9aa0
commit
bd4bf3ff73
|
|
@ -45,10 +45,7 @@ class LoginApi(Resource):
|
|||
raise NotAllowedCreateWorkspace()
|
||||
|
||||
token = AccountService.send_reset_password_email(email=args["email"])
|
||||
return redirect(
|
||||
location=f"{dify_config.CONSOLE_WEB_URL}/reset-password/check-code?token={token}&email={args['email']}",
|
||||
code=307
|
||||
)
|
||||
return {"result": "fail", "data": token, "message": "account_not_found"}
|
||||
# SELF_HOSTED only have one workspace
|
||||
tenants = TenantService.get_join_tenants(account)
|
||||
if len(tenants) == 0:
|
||||
|
|
|
|||
Loading…
Reference in New Issue