git-svn-id: https://svn.coded.pt/svn/SIPRP@1388 bb69d46d-e84e-40c8-a05a-06db0d633741

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Diogo Neves 15 years ago
parent 143cea8170
commit 47e807b249

@ -355,16 +355,16 @@ public class Login extends AbstractPageBean {
if(txtPassword.getText() != null) if(txtPassword.getText() != null)
{ {
String password = (String) txtPassword.getText(); String password = (String) txtPassword.getText();
if(password.trim().length() > 0) if( password.trim().length() > 0 )
{ {
try try
{ {
Utilizador u = udp.getUtilizador(utilizador); Utilizador u = udp.getUtilizador( utilizador );
if(u.getActivo().matches("y")) if( u != null && "y".equals( u.getActivo() ) )
{ {
if(!password.equals(u.getPassword())) if ( ! password.equals( u.getPassword() ) )
{ {
getSessionBean1().setMsg("Palavra-chave inválida !"); getSessionBean1().setMsg( "Palavra-chave inválida !" );
} }
else else
{ {

Loading…
Cancel
Save