fixes bug#AL-3200

master
Gleison da Cruz 2023-10-20 16:38:21 -03:00
parent 2f3a02c999
commit 8e3d100e43
1 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ public class UsuarioServiceImpl implements UsuarioService, UserDetailsService {
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.CONTRASENA_VALIDA_COMPLEJIDAD.getDescricao())) {
ConstanteService constanteService = (ConstanteService) AppContext.getApplicationContext().getBean("constanteService");
boolean CONSTANTE_CANT_MIN_CARACTER_OITO = Boolean.parseBoolean(constanteService.buscarPorNomeConstante("CONSTANTE_CANT_MIN_CARACTER_OITO").getValorconstante());
boolean CONSTANTE_CANT_MIN_CARACTER_OITO = constanteService.buscarPorNomeConstante("CONSTANTE_CANT_MIN_CARACTER_OITO").getValorconstante() != null ? Boolean.parseBoolean(constanteService.buscarPorNomeConstante("CONSTANTE_CANT_MIN_CARACTER_OITO").getValorconstante()) : false;
if(CONSTANTE_CANT_MIN_CARACTER_OITO) {
ContrasenaUtileria contrasenaUtileria = new ContrasenaUtileria(8);
@ -182,7 +182,7 @@ public class UsuarioServiceImpl implements UsuarioService, UserDetailsService {
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.CONTRASENA_VALIDA_COMPLEJIDAD.getDescricao())) {
ConstanteService constanteService = (ConstanteService) AppContext.getApplicationContext().getBean("constanteService");
boolean CONSTANTE_CANT_MIN_CARACTER_OITO = Boolean.parseBoolean(constanteService.buscarPorNomeConstante("CONSTANTE_CANT_MIN_CARACTER_OITO").getValorconstante());
boolean CONSTANTE_CANT_MIN_CARACTER_OITO = constanteService.buscarPorNomeConstante("CONSTANTE_CANT_MIN_CARACTER_OITO").getValorconstante() != null ? Boolean.parseBoolean(constanteService.buscarPorNomeConstante("CONSTANTE_CANT_MIN_CARACTER_OITO").getValorconstante()) : false;
if(CONSTANTE_CANT_MIN_CARACTER_OITO) {
ContrasenaUtileria contrasenaUtileria = new ContrasenaUtileria(8);