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

Add a 'Resend Confirmation Email' button to login page when user tries to login but has not confirmed yet

    XMLWordPrintable

Details

    • MOODLE_19_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_31_STABLE, MOODLE_35_STABLE
    • MOODLE_36_STABLE
    • MDL-17943_master
    • Hide
      Prerequisites
      1. Set-up mailcatcher (https://mailcatcher.me/).
      2. Log in as an admin.
      3. Visit ‘Site administration’ > ‘Server’ > ‘Outgoing mail configuration’.
      4. Set the 'SMTP hosts' field to '127.0.0.1:1025'.
      5. Save.
      6. Visit ‘Site administration’ > ‘Plugins’ > ‘Manage authentication’.
      7. Enable ‘Email-based self-registration'.
      8. Set 'Self registration' to 'Email-based self-registration'.
      9. Save.
      10. Log out.
      11. Visit 'http://127.0.0.1:1080/' to view outgoing emails and stay on this page for the remainder of this test. When any of the below instructions mention check your email it means refer to this page.
      Test 1
      1. Open another browser.
      2. Click 'Log in'.
      3. Click 'Create new account'.
      4. Fill in the necessary fields and click 'Create my new account'.
      5. Check you received a confirmation email.
      6. Do not visit the link in the email.
      7. Attempt to log in as the user.
      8. Check that you get a message saying you need to confirm your login.
      9. Confirm there is a button allowing you to request the email be sent again.
      10. Click on the button.
      11. Confirm you get a message saying the email was sent.
      12. Check your email and confirm another email was sent.
      13. Visit the link in the email.
      14. Confirm your account has been confirmed.
      Test 2
      1. Open another browser.
      2. Click 'Log in'.
      3. Click 'Create new account'.
      4. Fill in the necessary fields and click 'Create my new account'.
      5. Check you received a confirmation email.
      6. Do not visit the link in the email.
      7. Log in as the admin and go to the user page.
      8. Check that the user you just created has a 'Resend email' link next to their name.
      9. Click this link and ensure you receive an email and a message is shown to say it was successful.
      10. Visit the link in the email.
      11. Confirm your account has been confirmed.
      Test 3
      1. Open another browser.
      2. Click 'Log in'.
      3. Click 'Create new account'.
      4. Fill in the necessary fields and click 'Create my new account'.
      5. Check you received a confirmation email.
      6. Do not visit the link in the email.
      7. Go to the login page.
      8. Click on 'Forgotten your username or password?'
      9. Fill in the 'Username' field with the username you entered when you signed up and click 'Search'.
      10. Check you received a confirmation email.
      11. Visit the link in the email.
      12. Confirm your account has been confirmed.
      Test 4
      1. Open another browser.
      2. Click 'Log in'.
      3. Click 'Create new account'.
      4. Fill in the necessary fields and click 'Create my new account'.
      5. Check you received a confirmation email.
      6. Do not visit the link in the email.
      7. Go to the login page.
      8. Click on 'Forgotten your username or password?'
      9. Fill in the 'Email address' field with the email you entered when you signed up and click 'Search'.
      10. Check you received a confirmation email.
      11. Visit the link in the email.
      12. Confirm your account has been confirmed.
      Show
      Prerequisites Set-up mailcatcher ( https://mailcatcher.me/ ). Log in as an admin. Visit ‘Site administration’ > ‘Server’ > ‘Outgoing mail configuration’. Set the 'SMTP hosts' field to '127.0.0.1:1025'. Save. Visit ‘Site administration’ > ‘Plugins’ > ‘Manage authentication’. Enable ‘Email-based self-registration'. Set 'Self registration' to 'Email-based self-registration'. Save. Log out. Visit 'http://127.0.0.1:1080/' to view outgoing emails and stay on this page for the remainder of this test. When any of the below instructions mention check your email it means refer to this page. Test 1 Open another browser. Click 'Log in'. Click 'Create new account'. Fill in the necessary fields and click 'Create my new account'. Check you received a confirmation email. Do not visit the link in the email. Attempt to log in as the user. Check that you get a message saying you need to confirm your login. Confirm there is a button allowing you to request the email be sent again. Click on the button. Confirm you get a message saying the email was sent. Check your email and confirm another email was sent. Visit the link in the email. Confirm your account has been confirmed. Test 2 Open another browser. Click 'Log in'. Click 'Create new account'. Fill in the necessary fields and click 'Create my new account'. Check you received a confirmation email. Do not visit the link in the email. Log in as the admin and go to the user page. Check that the user you just created has a 'Resend email' link next to their name. Click this link and ensure you receive an email and a message is shown to say it was successful. Visit the link in the email. Confirm your account has been confirmed. Test 3 Open another browser. Click 'Log in'. Click 'Create new account'. Fill in the necessary fields and click 'Create my new account'. Check you received a confirmation email. Do not visit the link in the email. Go to the login page. Click on 'Forgotten your username or password?' Fill in the 'Username' field with the username you entered when you signed up and click 'Search'. Check you received a confirmation email. Visit the link in the email. Confirm your account has been confirmed. Test 4 Open another browser. Click 'Log in'. Click 'Create new account'. Fill in the necessary fields and click 'Create my new account'. Check you received a confirmation email. Do not visit the link in the email. Go to the login page. Click on 'Forgotten your username or password?' Fill in the 'Email address' field with the email you entered when you signed up and click 'Search'. Check you received a confirmation email. Visit the link in the email. Confirm your account has been confirmed.

    Description

      IMPROVEMENT #1
      It would be nice to have a Resend Confirmation Email button appear for users when they try to login to moodle, but they have not confirmed their account yet.

      IMPROVEMENT #2
      Also, if they go thru the 'forgot_password' process and they have not confirmed their account yet, it will tell them.... this should also provide a Resend Confirmation Email button.

      In both these cases, the user can 'self help' themselves first. before complaining to admin that they never got an email.

      IMPROVEMENT #3
      Add an additional column to the admin/user.php (Browse List of Users) page that would cause a link to appear beside the CONFIRM link that says 'Resend Email', which would allow admins to resend the confirmation email as well.

      Attachments

        1. 1.PNG
          1.PNG
          140 kB
        2. 2.PNG
          2.PNG
          207 kB
        3. 3.PNG
          3.PNG
          173 kB
        4. 4.PNG
          4.PNG
          173 kB
        5. login_not_confirmed.png
          login_not_confirmed.png
          32 kB

        Issue Links

          Activity

            People

              markn Mark Nelson
              jsherk Jeff Sherk
              Farhan Karmali Farhan Karmali
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Janelle Barcega Janelle Barcega
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Huong Nguyen, Barbara Ramiro, Bas Brands, Mathew May, David Woloszyn, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              55 Vote for this issue
              Watchers:
              33 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3/Dec/18

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 30 minutes
                  1h 30m