Merge branch 'MDL-52585-master' of git://github.com/jleyva/moodle
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 12 Jan 2016 06:35:36 +0000 (14:35 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 12 Jan 2016 09:31:08 +0000 (09:31 +0000)
login/token.php

index 54e9be1..b491a6b 100644 (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');
 }