Login and password verification

Asked

Viewed 551 times

0

I need help checking a login and password.

If the login and password I type in JTextField are the same as I have in the bank, can not allow registration, what I am looking for is not a validation but only a routine check in the register of an employee.

I made this method but I can not check the existing login and password, so that it is not possible to register, if already exists in the bank!

private boolean verificaLoginSenha( JTextField txtLogin, JTextField txtSenha){        
        String login = null;
        String senha = null;         
        if((!txtLogin.getText().equals(login)  && (!txtSenha.getText().equals(senha) )) ){
            return true;            
        }
         return false;
    }
  • I don’t understand @Diego F. Could help with some example??

  • start by receiving the user login and password... ai for you to check if this login already exists in your bank .. knife one is running throughout your database only with the user login to see if it exists and then vc returns true or false...

  • Thank you @Diego F if I understood very well I wouldn’t be here on the forum asking questions I would be like you giving "answers" !!!

  • @Tiago obg!! I will try!!

  • @Lizy was not a criticism, it was just a suggestion. Don’t get me wrong. I was about to answer that question, so I suggested the link. But if you didn’t understand each other’s content, I would have to make a big answer by explaining things outside the question. Anyway, good luck :)

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.