mardi 30 décembre 2014

Is user class responsible for authentication?

I have class named User, it has fields like username, password, firstName... . is it good to place authenticate(username, password) method in it?


Aucun commentaire:

Enregistrer un commentaire