I'm implementing a website (external to moodle) which needs to check that the user has entered the correct moodle password. I've implemented this by creating a service (called 'foobar' in this example). I then call
with the username and password. If the password is correct I get a response containing:
'error':'No permission to create web service token for the service foobar.'
and if the password is incorrect I get:
'error':'The username was not found in the database'
Because I can distinguish these two responses it serves my purpose, but it doesn't look like it's intended to be used in this way.
- Is there a web service function which is designed to check passwords?
- Will these responses from the login/token.php function be changed?