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

Locked user fields are editable when using Manual Auth

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.7
    • Authentication
    • None
    • MySQL
    • MOODLE_27_STABLE
    • Hide

      In the code the locked fields are getting by $authplugin->config property; in manual_auth_plugin class, config gets all properties by get_config(self::COMPONENT_NAME); in auth_plugin_manual constructor and the constant COMPONENT_NAME is "auth_manual"; in the Moodle DB the locked fields are stored in mdl_config_plugins table in the plugin field as "auth/manual" and other configs as "auth_manual".
      In CAS accounts, all configs are recorded as "auth/cas" except version that is recorded as "auth_cas"; in cas_auth_plugin class the inherited constructor method get the properties for config by: "auth/'.$authtype". That's correct beacuse in db are stored in the plugin field as "auth/cas".

      Show
      In the code the locked fields are getting by $authplugin->config property; in manual_auth_plugin class, config gets all properties by get_config(self::COMPONENT_NAME); in auth_plugin_manual constructor and the constant COMPONENT_NAME is "auth_manual"; in the Moodle DB the locked fields are stored in mdl_config_plugins table in the plugin field as "auth/manual" and other configs as "auth_manual". In CAS accounts, all configs are recorded as "auth/cas" except version that is recorded as "auth_cas"; in cas_auth_plugin class the inherited constructor method get the properties for config by: "auth/'.$authtype". That's correct beacuse in db are stored in the plugin field as "auth/cas".

      The Lock user fields for manual accounts not work in user edit profile, the fields are unlocked.

      In Manual accounts under Site administration > Plugins > Authentication sets First name, Surname and ID number as locked.
      When user edit their profile the locked fields are not locked or disabled.
      This feature (locked user fields) in CAS accounts with fields locked works right.

        1. edit.png
          edit.png
          29 kB
        2. manual.png
          manual.png
          22 kB

            Unassigned Unassigned
            grendon Guido Rendon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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