Skip to content

Commit

Permalink
Properly reset value
Browse files Browse the repository at this point in the history
  • Loading branch information
RoiEXLab committed May 17, 2020
1 parent bd7b352 commit ab9c619
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,10 @@ public void save(final SaveContext context) {

context.setValue(usernameSetting, usernameField.getText().toCharArray());
// TODO error reporting
} else {
context.setValue(usernameSetting, null);
context.setValue(uidSetting, null);
context.setValue(tokenSetting, null);
}

oldUserId.ifPresent(
Expand All @@ -803,6 +807,7 @@ public void save(final SaveContext context) {
} catch (final InterruptedException e) {
Thread.currentThread().interrupt();
}

/*final String username = usernameField.getText();
context.setValue(uidSetting, username.isEmpty() ? null : username.toCharArray());
withSensitiveArray(
Expand Down

0 comments on commit ab9c619

Please sign in to comment.