MDL-52585 webservices: Return correct invalid login message

This commit is contained in:
Juan Leyva
2015-12-22 17:00:07 +01:00
parent 62e799ac84
commit 8c1261bd97
+1 -1
View File
@@ -204,5 +204,5 @@ if (!empty($user)) {
$usertoken->token = $token->token;
echo json_encode($usertoken);
} else {
throw new moodle_exception('usernamenotfound', 'moodle');
throw new moodle_exception('invalidlogin');
}