Moodle
  1. Moodle
  2. MDL-22871

Occasionally two guest accounts exist (possibly mnet related) and this prevents guest login

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.9
    • Fix Version/s: 1.9.10, 2.0
    • Component/s: Authentication
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE
    • Rank:
      27010

      Description

      Sometimes two guest accounts exist, and so login fails.

      This discussion has a clear summary http://moodle.org/mod/forum/discuss.php?d=152147

      See also:
      http://moodle.org/mod/forum/discuss.php?d=134099
      http://moodle.org/mod/forum/discuss.php?d=152120&parent=665644

      There's two things that should be fixed:

      1) Login should be more tolerant, in this instance probably. (will fix sites with the problem)
      2) The guest account creation should check better before it creates a new one. (prevents the problem in future)

        Activity

        Hide
        Petr Škoda added a comment -

        I have already changed significantly the guest account handling in 2.0dev + my enrol patch, it should not happen any more because the guest and admin account are created only in db/install.php

        I am going to review the login process, but I think it might be better to drop all duplicate guest accounts instead...

        Show
        Petr Škoda added a comment - I have already changed significantly the guest account handling in 2.0dev + my enrol patch, it should not happen any more because the guest and admin account are created only in db/install.php I am going to review the login process, but I think it might be better to drop all duplicate guest accounts instead...
        Hide
        Petr Škoda added a comment -

        should be fixed now

        Show
        Petr Škoda added a comment - should be fixed now

          People

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

            Dates

            • Created:
              Updated:
              Resolved: