fix(account): remove token when change password
This commit is contained in:
@@ -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 {
|
if err := as.accountRepository.ChangePassword(ctx, account.ID, string(passwordHash)); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
as.Logout(ctx, account.ID)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user