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

Required custom profile fields, are not required with Guest status

    Details

    • Testing Instructions:
      Hide
      1. As admin: Enable self registration and logging in as guest (but do not enable autologin)
      2. Add a required profile field that should be displayed on the registration page
      3. Logout and try to register as a new user
      4. Make sure the custom profile field is marked as required, complete registration
      5. Login as admin, edit the newly created user and make sure the field is NOT required for you
      6. Login as user, edit your own profile and make sure the field is required
      7. Log out and log in as a guest
      8. Open registration form and make sure the field is required
      Show
      As admin: Enable self registration and logging in as guest (but do not enable autologin) Add a required profile field that should be displayed on the registration page Logout and try to register as a new user Make sure the custom profile field is marked as required, complete registration Login as admin, edit the newly created user and make sure the field is NOT required for you Login as user, edit your own profile and make sure the field is required Log out and log in as a guest Open registration form and make sure the field is required
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-42138-master

      Description

      Custom Profile Fields that are marked Required on the email-based self-registration form,
      are NOT required when the user has Guest status.

      This is important, as with a Distance Learning Site setup (we're using the PayPal gateway for course purchase), a new user (lacking a site account) looking at a course description, and clicking the link at the bottom of this to log in, is granted Guest status from that link; then on attempting to create an account on the site, the Required Custom fields are NOT required, and we end up with users necessary contact information in their profiles.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  5 Vote for this issue
                  Watchers:
                  10 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    9/Mar/15