Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29315 Case of Emails should be properly handled
  3. MDL-29320

Case of Emails should be properly handled during User profile updates

XMLWordPrintable

    • MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_21_STABLE
    • MOODLE_35_STABLE, MOODLE_36_STABLE
    • MDL-29320-master
    • Hide

      Note: Most of this is already covered by Behat tests. The only thing that needs manual testing is the email update confirmation.

      Prerequisite
      1. Mailcatcher or an outgoing mail setup.
      Testing email change confirmation email - Multiple accounts with the same email disabled
      1. Log in as admin.
      2. Go to "Site administration / Plugins / Authentication / Manage authentication
      3. Make sure that "Allow accounts with same email" is unticked.
      4. Create a user with a username s1 and an email 's1@example.com'
      5. Create another user with a username s2 and an email 's2@example.com'
      6. On a separate browser window session (e.g. incognito window), log in as s1.
      7. Open another tab for Mailcatcher on s1's browser window.
      8. As s1, edit s1's email and change it to 'S1@EXAMPLE.COM'
      9. Save your changes.
      10. Confirm that you don't get any errors.
      11. Check the email update confirmation email on Mailcatcher.
      12. Open the link.
      13. Confirm that s1's email is now successfully changed to 'S1@EXAMPLE.COM'
      14. Edit s1's email address again and change it to 's11@example.com'
      15. Back on the admin's browser window, edit s2's profile and change the email to 's11@example.com'
      16. Back on s1's browser window, open the email change confirmation link.
      17. Confirm that you get an error that someone has already registered that email and that your email change has been cancelled.
      Testing email change confirmation email - Multiple accounts with the same email allowed
      1. Back on the admin's browser window, go to "Site administration / Plugins / Authentication / Manage authentication
      2. Tick "Allow accounts with same email" and save the changes.
      3. Back on s1's browser window, edit s1's email address again and change it to 's12@example.com'
      4. Back on the admin's browser window, edit s2's profile and change the email to 's12@example.com'
      5. Back on s1's browser window, open the email change confirmation link.
      6. Confirm that you are able to change s1's email address to 's12@example.com'
      Show
      Note: Most of this is already covered by Behat tests. The only thing that needs manual testing is the email update confirmation. Prerequisite Mailcatcher or an outgoing mail setup. Testing email change confirmation email - Multiple accounts with the same email disabled Log in as admin. Go to " Site administration / Plugins / Authentication / Manage authentication Make sure that " Allow accounts with same email " is unticked. Create a user with a username s1 and an email 's1@example.com' Create another user with a username s2 and an email 's2@example.com' On a separate browser window session (e.g. incognito window), log in as s1. Open another tab for Mailcatcher on s1's browser window. As s1, edit s1's email and change it to 'S1@EXAMPLE.COM' Save your changes. Confirm that you don't get any errors. Check the email update confirmation email on Mailcatcher. Open the link. Confirm that s1's email is now successfully changed to 'S1@EXAMPLE.COM' Edit s1's email address again and change it to 's11@example.com' Back on the admin's browser window, edit s2's profile and change the email to 's11@example.com' Back on s1's browser window, open the email change confirmation link. Confirm that you get an error that someone has already registered that email and that your email change has been cancelled. Testing email change confirmation email - Multiple accounts with the same email allowed Back on the admin's browser window, go to " Site administration / Plugins / Authentication / Manage authentication Tick " Allow accounts with same email " and save the changes. Back on s1's browser window, edit s1's email address again and change it to 's12@example.com' Back on the admin's browser window, edit s2's profile and change the email to 's12@example.com' Back on s1's browser window, open the email change confirmation link. Confirm that you are able to change s1's email address to 's12@example.com'

      When an user/admin updates user profile, email should be stored as per standard casing regulations for emails specified in RFC 2821 i.e local part should be case-sensitive where as domain part should not.

            jpataleta Jun Pataleta
            ankit_frenz Ankit Agarwal
            Damyon Wiese Damyon Wiese
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 15 minutes
                6h 15m

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