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

Option to disable the user Welcome message

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.0.2
    • Themes
    • MOODLE_400_STABLE

      It would be useful to have a config option to disable the welcome message introduced in MDL-71964.

      This is desirable for SSO environments where the user has already logged in to other non-Moodle services and transferred seamlessly to Moodle from them. In this scenario, the user has already been "welcomed" at an earlier stage outside of Moodle so being welcomed a second time in Moodle looks a bit odd.

      The only workaround for this I've come up with short of a custom core patch is to insert the following into an existing custom plugin in my customers Moodle site that listens for \core\event\user_loggedin:

      $USER->core_welcome_message = true;
      if (empty(get_user_preferences('core_user_welcome', null))) {
          set_user_preference('core_user_welcome', time());
      }

      Which prevents the welcome message from showing by updating the preferences that controls it before the code that shows the welcome message is executed.

       

            Unassigned Unassigned
            tim1mw Tim Williams
            Votes:
            1 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:

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