Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4390

Requests to login/token.php should support multi-lang

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.2.0
    • 4.3.0
    • Authentication
    • Hide

      This only needs to be tested in one device. To make sure that this is working properly, make sure to test with languages that are not the default in the device nor in the Moodle instance.

      1. Attempt to log into a site with invalid credentials, you should get an error response.
      2. Change the language of the app in settings > general > language.
      3. Make sure that the language has changed in the app, and try to log in again. You should get an error response in the language of the app.
      4. Repeat again for a couple of languages.
      Show
      This only needs to be tested in one device. To make sure that this is working properly, make sure to test with languages that are not the default in the device nor in the Moodle instance. Attempt to log into a site with invalid credentials, you should get an error response. Change the language of the app in settings > general > language. Make sure that the language has changed in the app, and try to log in again. You should get an error response in the language of the app. Repeat again for a couple of languages.
    • MOODLE_402_STABLE
    • MOODLE_403_STABLE
    • Moodle Apps - 2023 Sprint i3.0

    Description

      This is necessary to ensure that the user will receive error messages from the server in their currently configured language in the app.

      To fix this, we just need to append: &lang=X to any request going to login/token.php

      Attachments

        Activity

          People

            noeldemartin Noel De Martin
            jleyva Juan Leyva
            Dani Palou Dani Palou
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10/Nov/23