Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-52585

login/token.php returns an incorrect message when the user enter invalid credentials

XMLWordPrintable

    • MOODLE_30_STABLE
    • MOODLE_29_STABLE, MOODLE_30_STABLE
    • MDL-52585-master
    • Hide
      1. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile
      2. Now, execute the following CURL call pointing to your installation (you should use and invalid user or password)

        curl 'http://localhost/m/stable_master/login/token.php' --data 'username=student&password=abc&service=moodle_mobile_app' --compressed

      3. Confirm that the response is a json string containing the error: Invalid login, please try again
      Show
      As admin, enable "Mobile services": Plugins ► Web Services ► Mobile Now, execute the following CURL call pointing to your installation (you should use and invalid user or password) curl 'http://localhost/m/stable_master/login/token.php' --data 'username=student&password=abc&service=moodle_mobile_app' --compressed Confirm that the response is a json string containing the error: Invalid login, please try again

      This was reported by ghenrick, in the Mobile app if you enter invalid credentials the login/token.php returns a "usernamenotfound" message when it should be "invalidlogin" as login/index.php does

            jleyva Juan Leyva
            jleyva Juan Leyva
            Simey Lameze Simey Lameze
            Andrew Lyons Andrew Lyons
            Jun Pataleta Jun Pataleta
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.