We have developed a web site, online magazine store for android device, there is also an android app that loads the website as web view. Every device has a username, password and a device ID which is sent as post during the loading of web view.
My requirement is :
- The site should load only if the login credential supplied (post) from the android device is valid.
Where should I check the validity of the the credential? I mean should I write a plugin or whether the checking has to done in bootstrap. I dont need any group based access control all users have the same privilege.
Please show some example with necessary code.