Delete username link when deleting username

This commit is contained in:
AsamK 2024-05-01 09:04:03 +02:00
parent 3f31f1a8a6
commit 90b1e4bc02

View file

@ -446,6 +446,8 @@ public class AccountHelper {
}
public void deleteUsername() throws IOException {
dependencies.getAccountManager().deleteUsernameLink();
account.setUsernameLink(null);
dependencies.getAccountManager().deleteUsername();
account.setUsername(null);
logger.debug("[deleteUsername] Successfully deleted the username.");