Skip to content

Commit

Permalink
Encrypting createdBy and updatedBy
Browse files Browse the repository at this point in the history
  • Loading branch information
softwaremagico committed May 9, 2024
1 parent 1db6323 commit 3a083aa
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,8 @@ public Optional<IAuthenticatedUser> findByUsername(String username) {
}
if (getDatabaseEncryptionKey() != null) {
//Username is encrypted, use hash
final Optional<AuthenticatedUser> authenticatedUser = authenticatedUserRepository
.findByUsernameHash(username);
final Optional<AuthenticatedUser> authenticatedUser = authenticatedUserRepository.findByUsernameHash(username);
if (authenticatedUser.isPresent()) {
authenticatedUser.get().setUsernameHash(authenticatedUser.get().getUsername());
return Optional.of(authenticatedUser.get());
}
} else {
Expand Down

0 comments on commit 3a083aa

Please sign in to comment.