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

Locked user fields are editable when using Manual Auth

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.7
    • Fix Version/s: None
    • Component/s: Authentication
    • Labels:
      None
    • Database:
      MySQL
    • Workaround:
      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".
    • Affected Branches:
      MOODLE_27_STABLE

      Description

      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.

        Attachments

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

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              grendon Guido Rendon
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: