|
|
|
@ -132,6 +132,7 @@ class EmailCodeLoginApi(Resource):
|
|
|
|
|
|
|
|
|
|
|
|
AccountService.revoke_email_code_login_token(args["token"])
|
|
|
|
AccountService.revoke_email_code_login_token(args["token"])
|
|
|
|
account = AccountService.get_user_through_email(user_email)
|
|
|
|
account = AccountService.get_user_through_email(user_email)
|
|
|
|
|
|
|
|
if account:
|
|
|
|
tenant = TenantService.get_join_tenants(account)
|
|
|
|
tenant = TenantService.get_join_tenants(account)
|
|
|
|
if not tenant:
|
|
|
|
if not tenant:
|
|
|
|
if not dify_config.ALLOW_CREATE_WORKSPACE:
|
|
|
|
if not dify_config.ALLOW_CREATE_WORKSPACE:
|
|
|
|
|