Finish Hotfix-100
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user