fix: automatically create tenant for user (#793)

This commit is contained in:
Matri
2023-08-11 18:18:11 +08:00
committed by GitHub
parent 39933aeb62
commit fc7e4ac75b
2 changed files with 17 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ class LoginApi(Resource):
try:
TenantService.switch_tenant(account)
except Exception:
raise AccountNotLinkTenantError("Account not link tenant")
pass
flask_login.login_user(account, remember=args['remember_me'])
AccountService.update_last_login(account, request)