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

Message on the login page for a suspended account

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.2.2
    • Authentication

      A user who has been suspended from their moodle site and has not been notified will certainly try to log in. As their account has been suspended, they will not be able to connect and the error message displayed will be "invalidlogin".

      I suggest to customise the message by specifying that his account has been suspended and that he should contact an administrator to find out why.
      To do this, is it possible to create a new string (exemple : "suspendedlogin") in the language file and modify the code of the file /login/index.php by adding :

      if ($errorcode == AUTH_LOGIN_SUSPENDED)

      {                 $errormsg = get_string("suspendedlogin");  }

      Look at : https://moodle.org/mod/forum/discuss.php?d=448835#p1803888

            lucaboesch Luca Bösch
            christ Christian Bocquet
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Votes:
            4 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:

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

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