fixes bug#AL-3200
parent
2f3a02c999
commit
8e3d100e43
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue