Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3645

When username is not standard, the registration fail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: Local: Hub
    • Labels:
      None
    • Affected Branches:
      MOODLE_23_STABLE

      Description

      Hi, I'm trying to register my Moodle site so I can receive the security alert emails. I log into my Moodle site, go to Site Administration > Registration, and fill out the form. When I hit submit, I get the following error from http://hub.moodle.org/local/hub/siteregistration.php - But I'm not entering a username in the form, so I don't know how to fix: The username can only contain alphanumeric lowercase characters, underscore (_), hyphen , period (.) or at symbol (@) Stack trace: line 47 of /user/lib.php: moodle_exception thrown line 1365 of /local/hub/lib.php: call to user_create_user() line 1182 of /local/hub/lib.php: call to local_hub->create_hub_token() line 341 of /local/hub/siteregistration.php: call to local_hub->register_site() line 303 of /local/hub/siteregistration.php: call to process_registration()

      When username is not standard, the registration fail. We should not validate username on the hub, it doesn't really matter how is the username on the remote site.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jerome Jérôme Mouneyrac
              Reporter:
              jerome Jérôme Mouneyrac
              Participants:
              Component watchers:
              Jérôme Mouneyrac
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: