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

OAuth 2 still expecting email verification after "Require email verification" has been disabled

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Prerequisites

      1. Setup an OAuth 2 client with Google (https://docs.moodle.org/39/en/OAuth_2_Google_service)
      2. Google (Gmail) account

      Test

      1. Login as Admin
      2. Go to Site administration > Server > OAuth 2 services
      3. Create a new Google Service (https://docs.moodle.org/39/en/OAuth_2_services)
        1. Enter the Client ID and Client secret from the Google OAuth 2 client.
        2. Save changes
      4. Go to Site administration > Plugins > Authentication > Manage authentication
      5. Enable OAuth2 authentication
      6. Log out as Admin
      7. Try to log in using your Google account
        • You should see a message stating that an email has been sent to your address which contains instructions to complete your registration.
      8. Press "Continue"
      9. Try to log in using your Google account once again.**
        • You should not be able to log in
        • You should see an error "This account is pending email confirmation"
      10. Login as Admin
      11. Go to Site administration > Server > OAuth 2 services
      12. Edit the created Google service
        1. Disable (Uncheck) "Require email verification"
        2. Save changes
      13. Log out as Admin
      14. Try to log in using your Google account
        • You should be able to log in.
      Show
      Prerequisites Setup an OAuth 2 client with Google ( https://docs.moodle.org/39/en/OAuth_2_Google_service ) Google (Gmail) account Test Login as Admin Go to Site administration > Server > OAuth 2 services Create a new Google Service ( https://docs.moodle.org/39/en/OAuth_2_services ) Enter the Client ID and Client secret from the Google OAuth 2 client. Save changes Go to Site administration > Plugins > Authentication > Manage authentication Enable OAuth2 authentication Log out as Admin Try to log in using your Google account You should see a message stating that an email has been sent to your address which contains instructions to complete your registration. Press "Continue" Try to log in using your Google account once again.** You should not be able to log in You should see an error " This account is pending email confirmation " Login as Admin Go to Site administration > Server > OAuth 2 services Edit the created Google service Disable (Uncheck) " Require email verification " Save changes Log out as Admin Try to log in using your Google account You should be able to log in.
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_34_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE, MOODLE_39_STABLE
    • Pull 3.8 Branch:
    • Pull 3.9 Branch:
    • Pull Master Branch:
      MDL-60827-master
    • Story Points:
      3
    • Sprint:
      4.0 holding pattern, 4.0 holding pattern 2

      Description

      Some users when they try to login on moodle receive the fallowing massage " This account is pending email confirmation. " even if I have the setting Site administration -> Server -> Oauth 2 Services -> Require email verification ( Unchecked ). It seems that users don't find the confirmation mail ( probably ended up in spam and was delete ). Is it possible to resend the confirmation email ? or any other way to solve this problem ?

      The authentication method is by using OAuth 2 Google service

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Geshoski Mihail Geshoski
              Reporter:
              marianm ionuto
              Peer reviewer:
              Ferran Recio
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Simey Lameze
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              9 Vote for this issue
              Watchers:
              25 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Jul/20

                  Time Tracking

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