lundi 23 mai 2016

How to use hasher::check in custom class to validate credentials for Token based authentication API

I am working on Token based authentication in which user will send Post request from Android to Laravel. Header will have Username and Encrypted Password. I am able to decrypt the password sent from Android to Laravel. Now I have plan Password.

Now the issue is: I need to compare it with AuthPassword. Can somebody advice how can I use hasher::check in my class so that I can check if credentials are correct or not?

I know, we have api_token in User Model, but in my requirement, user can do the Registration/Login from Android also.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire