fix(account): remove token when change password

This commit is contained in:
Leon
2025-12-09 16:20:15 +08:00
parent 6804b71fe9
commit e3ae8185be

View File

@@ -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
}