I'm making an educational app where the user must login using moodle username and password and along with other stuff there will be moodle information.
The problem is that we found out that we can validate (and enable webservices access) through the token.php request. But the only thing that we get as a return is:
{
"error": "The username was not found in the database",
"stacktrace": "* line 179 of /login/token.php: moodle_exception thrown
",
"debuginfo": "
Error code: usernamenotfound",
"reproductionlink": "http://#####.com/"
}
We trying changing the shortname, setting on .php file, but nothing seems to work.
So we need to know if there is anything we can do to fix it or we are possibly using the wrong function.
Just to note, the Moodle version we are using is the 2.3.1
Thanks in advance.