Finish Hotfix-100
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-09-10 13:21:16 +02:00
2 changed files with 3 additions and 0 deletions

View File

@@ -543,6 +543,7 @@ public class SystemController {
@RequestParam(value = "md5User", required = false) String md5User,
@RequestBody(required = false) LoginRequestDTO loginRequestDTO) {
try {
logger.debug("Login: " + username);
if (loginRequestDTO != null) {
username = UtilityString.isNull(loginRequestDTO.getUsername(), username);
password = UtilityString.isNull(loginRequestDTO.getPassword(), password);

View File

@@ -350,6 +350,8 @@ public class SystemService {
}
if (foundUser == null) {
logger.debug(String.format("Credenziali non valide utente: %s ( %s) ",
username, multiDBTransactionManager.getPrimaryConnection().getCatalog() + " )"));
throw new Exception("Credenziali non valide");
} else if (!foundUser.isAttivo()) {
throw new Exception("Utente non attivo");