1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-06-03 06:10:11 +02:00
Stirling-PDF/src/main/java/stirling/software/SPDF/repository
Ludy 9cc7a49d12
Enforcing Username Uniqueness (#906)
* Enforcing Username Uniqueness

Changes in UserService.java:

Added a new method findByUsername to allow searching for usernames regardless of case sensitivity.
Added a new method isUsernameValid to validate the username.
Changes in UserController.java:

Updated the changeUsername method to ensure the new username is valid before changing it.
Updated the editUser method to ensure the new username is unique and valid.
Changes in UserRepository.java:

Added a custom JPQL query to search for usernames regardless of case sensitivity.
Changes in HTML templates (account.html and addUsers.html):

Error messages are displayed if a username is invalid or already exists.

* JPAs auto
2024-03-13 22:09:16 +00:00
..
AuthorityRepository.java formatting 2023-12-30 19:11:27 +00:00
JPATokenRepositoryImpl.java formatting 2023-12-30 19:11:27 +00:00
PersistentLoginRepository.java formatting 2023-12-30 19:11:27 +00:00
UserRepository.java Enforcing Username Uniqueness (#906) 2024-03-13 22:09:16 +00:00