Moodle
  1. Moodle
  2. MDL-25400

user_created/updated events not generated at login

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.1
    • Component/s: Authentication, Events API
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Rank:
      1144

      Description

      Authentication plugins that rely on authenticate_user_login() in moodlelib.php to create/update users don't generate user_created and user_updated events. In particular, shibboleth and ldap auth have this problem.

      I've attached a patch that has been tested to work correctly with shibboleth and should be fine with other plugins as well as I don't think there is any difference at this level.

      1. moodlelib.php.patch
        2 kB
        Matt Petro
      2. moodlelib.php.patch
        2 kB
        Matt Petro
      3. moodlelib.php.patch.20101124
        0.9 kB
        Matt Petro

        Activity

        Hide
        Matt Petro added a comment -

        I must have attached the patch twice, they are the same file.

        Show
        Matt Petro added a comment - I must have attached the patch twice, they are the same file.
        Hide
        Matt Petro added a comment -

        New patch, this time against trunk

        Show
        Matt Petro added a comment - New patch, this time against trunk
        Hide
        Petr Škoda added a comment -

        Hello,
        thanks for the report!! This should be fixed now, please test and reopen if necessary.

        Petr

        Show
        Petr Škoda added a comment - Hello, thanks for the report!! This should be fixed now, please test and reopen if necessary. Petr

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: