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

Uploading new users: add a flag 'force password change' for CSV

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Inactive
    • Icon: Minor Minor
    • None
    • 1.9
    • Administration
    • None
    • MOODLE_19_STABLE

      Add new field to CSV pointing that newly created users must change their passwords at first login.
      It will simply set user preference auth_forcepasswordchange=1 in the database table 'mdl_user_preferences' by calling:

      set_user_preference('auth_forcepasswordchange', 1, $user->id);

      It is called even now if you 1) leave user password blank and 2) check the flag to create user password (line 534 in admin/uploaduser.php). But it is not exactly what I want - I should wish that password remains the same up to first login of the user.

            Unassigned Unassigned
            plisco Igor Plisco (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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