I'm working on a project which has Web Application and Mobile client. I'm using CakePHP 3.2 for developing web application. There is a table users to store user credentials and register login logout function.
I'm using DefaultPasswordHasher of CakePHP 3.
Now, I want the user to be able to register and login using Android/iOS application using the same users table and login using the hashed password generated by CakePHP or hash password while registration so that CakePHP web client can be used to login.
I'm a learner and new to CakePHP and Android.
How could I do it ?
The main problem is with the hashing of password field because CakePHP uses different technique to hash password every time.
Edit 2
login action of UsersController in CakePHP project is configured to authenticate user and return to some other action. But I want to retrieve user's data after validating.
 
     
    