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

Implement Modica SMS gateway plugin

XMLWordPrintable

    • MOODLE_404_STABLE, MOODLE_500_STABLE
    • MOODLE_500_STABLE
    • MDL-79329-main
    • Hide

      Setup

      Modica requires setup before using the API to test the SMS. It is not open to the public and needs an account at https://omni.modicagroup.com/

      Please reach out to get access to that portal or to get the API keys.

      Test Mobile phone SMS Authentication

      1. Access to your Moodle as an admin user.
      2. Navigate to: Site Administration> Plugins > Admin tools > Multi-factor authentication.
      3. Enable the "MFA plugin enabled" checkbox and save.
      4. Find "SMS" in the list of factors.
      5. Enable the factor and confirm you can then set the factor weight and secret validity duration.
      6. Navigate to: Site Administration> Plugins > SMS > Manage SMS gateways.
      7. Click the Create a new SMS gateway button.
      8. Select Modica as the SMS gateway provider.
      9. Fill in all the fields using the Modica credentials (application name and password).
      10. Save changes.
      11. Access your user preferences / "Multi-factor authentication preferences".
      12. Set up the "Mobile phone SMS" factor with a test phone number.
      13. Confirm you have received an SMS to your phone number.
      14. Enter the code you received and continue. 
      15. Confirm you are logged in and can access your Moodle account.

      NOTE: If you mess things up and lock yourself out, you can disable the whole MFA plugin from the CLI:

      php admin/cli/cfg.php --component=tool_mfa --name=enabled --set=0
      Show
      Setup Modica requires setup before using the API to test the SMS. It is not open to the public and needs an account at https://omni.modicagroup.com/ Please reach out to get access to that portal or to get the API keys. Test Mobile phone SMS Authentication Access to your Moodle as an admin user. Navigate to: Site Administration> Plugins > Admin tools > Multi-factor authentication. Enable the "MFA plugin enabled" checkbox and save. Find "SMS" in the list of factors. Enable the factor and  confirm  you can then set the factor weight and secret validity duration. Navigate to: Site Administration> Plugins > SMS > Manage SMS gateways. Click the Create a new SMS gateway button. Select Modica as the SMS gateway provider. Fill in all the fields using the Modica credentials (application name and password). Save changes. Access your user preferences / "Multi-factor authentication preferences". Set up the "Mobile phone SMS" factor with a test phone number. Confirm  you have received an SMS to your phone number. Enter the code you received and continue.  Confirm  you are logged in and can access your Moodle account. NOTE: If you mess things up and lock yourself out, you can disable the whole MFA plugin from the CLI : php admin/cli/cfg.php --component=tool_mfa --name=enabled --set=0
    • Hide

      Code verified against automated checks.

      Checked MDL-79329 using repository: https://github.com/safatshahin/moodle.git

      More information about this report

      Built on: Tue Mar 4 05:51:38 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-79329 using repository: https://github.com/safatshahin/moodle.git main (0 errors / 0 warnings) [branch: MDL-79329-main | CI Job ] More information about this report Built on: Tue Mar 4 05:51:38 UTC 2025
    • Hide

      Launching automatic jobs for branch MDL-79329-main

      Built on: Tue Feb 25 05:10:20 AM UTC 2025

      Show
      Launching automatic jobs for branch MDL-79329 -main https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/18347/ PHPUnit (sqlsrv / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/62781/ Behat (NonJS - boost and classic / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/62782/ Behat (Firefox - boost / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/62783/ Behat (Firefox - classic / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/62784/ App tests (stable app version) / complete) --> unrelated failure caused by browser update, please ignore. Built on: Tue Feb 25 05:10:20 AM UTC 2025
    • 0
    • Team Dragons 2025 Sprint 1.2, Team Dragons 2025 Sprint 1.3

      This will be the second SMS gateway implemented (after AWS in MDL-80961), and its core functionality can be based on the Catalyst Modica gateway implementation, which is used by the external version of the MFA plugin, but was removed from the one that landed in core (MDL-78511).

        1. wrong code error during setup.png
          48 kB
          Jun Pataleta
        2. invalid phone number format.jpg
          76 kB
          Jun Pataleta
        3. sms_factor one-time-code.jpeg
          675 kB
          Jun Pataleta

            safat.shahin@moodle.com Safat Shahin
            raquel.ortega@moodle.com Raquel Ortega
            Meirza Meirza
            Andrew Lyons Andrew Lyons
            Jun Pataleta Jun Pataleta
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 24 minutes
                1h 24m

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