webservice auth nologin

webservice auth nologin

by Liane Figueroa -
Number of replies: 0

Hi, 

I want to configure a web service in my application, I've read that the type of user authentication for the web service must be 'webservice'. But when I go to request the token doesn't return, because the user can't login.

 

In token.php:

$user = authenticate_user_login($username, $password);

 

In moodlelib.php, authenticate_user_login:

if (!$authplugin->user_login($username, $password)) {
continue;
}

 

In webservice/auth.php:

function user_login($username, $password) {
// normla logins not allowed!
return false;
}

 

Any body can help me?

Thanks a lot!

Average of ratings: -