Skip to content

Commit

Permalink
Adding some compatibility with old non-encrypted database.
Browse files Browse the repository at this point in the history
  • Loading branch information
softwaremagico committed May 9, 2024
1 parent 2e8af68 commit da773cc
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@
@Transactional
public interface AuthenticatedUserRepository extends JpaRepository<AuthenticatedUser, Integer> {

/**
* Note that this method will not work with encrypted databases. Use the username search based on Hash.
*
* @param username
* @return
*/
Optional<AuthenticatedUser> findByUsername(String username);

Optional<AuthenticatedUser> findByUsernameHash(String username);
}

0 comments on commit da773cc

Please sign in to comment.