From e3ae8185be110c4451c5f10598eee476af056731 Mon Sep 17 00:00:00 2001 From: Leon <147289645+LeoninCS@users.noreply.github.com> Date: Tue, 9 Dec 2025 16:20:15 +0800 Subject: [PATCH] fix(account): remove token when change password --- internal/account/service.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/account/service.go b/internal/account/service.go index f8c5638..9850b32 100644 --- a/internal/account/service.go +++ b/internal/account/service.go @@ -50,6 +50,7 @@ func (as *AccountService) ChangePassword(ctx context.Context, username, oldPassw if err := as.accountRepository.ChangePassword(ctx, account.ID, string(passwordHash)); err != nil { return err } + as.Logout(ctx, account.ID) return nil }