diff --git a/backend/kendo-tournament-persistence/src/main/java/com/softwaremagico/kt/persistence/repositories/AuthenticatedUserRepository.java b/backend/kendo-tournament-persistence/src/main/java/com/softwaremagico/kt/persistence/repositories/AuthenticatedUserRepository.java index dc075bd5e..b8f13a7d2 100644 --- a/backend/kendo-tournament-persistence/src/main/java/com/softwaremagico/kt/persistence/repositories/AuthenticatedUserRepository.java +++ b/backend/kendo-tournament-persistence/src/main/java/com/softwaremagico/kt/persistence/repositories/AuthenticatedUserRepository.java @@ -32,6 +32,13 @@ @Transactional public interface AuthenticatedUserRepository extends JpaRepository { + /** + * Note that this method will not work with encrypted databases. Use the username search based on Hash. + * + * @param username + * @return + */ Optional findByUsername(String username); + Optional findByUsernameHash(String username); }