0

Authentication

When doing user login authentication is retrieving the user name/ID and password nd doing validations locally better than retrieving the row count.?

30th Apr 2017, 5:46 AM
T3K
T3K - avatar
1 Resposta
+ 5
Those are two completely different functions. What you should be doing is encrypting all passwords and adding a salt (perhaps use the username for this) and save the user's login to a database as the encrypted password hash. When user logs in you would compare the login hash with the hash in the database. There are many ways to validate as well... if this is a Web app you're working on then do both front end and backend validation.
2nd May 2017, 11:26 PM
Mike
Mike - avatar