This is a Jquery/Zepto plugin for http basic authentication.
- isValidUser will return only true/false to indicate validity of user
var isValidUser = $().BasicAuth('isValidUser',{ userName:"Ashok", password:"Password" });
or
2) authenticate will return the user details returned by the service
var userDetails = $().BasicAuth('authenticate',{ userName:"Ashok", password:"Password" });
NOTE: This is a very initial version hence u might find few issues. Please do report issues / feedback. Thanks