Disable email verification?

How do I disable email verification? - I’m using Tutor’s packaging of Open edX, and the GMail integration isn’t working, so I opened this issue: https://github.com/overhangio/tutor/issues/287

But in the meantime, how do I disable email verification in Tutor, so I can get students registered and enrolled to my free & open-source courses?

Thanks

The long answer is that you should fix the email verification, but if you want to turn it off for whatever reason the way to go is to set the SKIP_EMAIL_VALIDATION feature flag.

FEATURE['SKIP_EMAIL_VALIDATION'] = True

I don’t know how to go about this in tutor, but a normally setting this in the lms.env.json or equivalent yaml file does it.

4 Likes

It’s a bit late for this answer but I’ll leave it here for others.
If you’re using tutor, inside your tutor-plugins, go ahead and create skip_email_verification.py

cd $(tutor plugins printroot)
touch skip_email_verification.py

and add the following to your plugin:

from tutor import hooks

hooks.Filters.ENV_PATCHES.add_item(
    (
        "openedx-common-settings",
        "FEATURE['SKIP_EMAIL_VALIDATION'] = True",
    )
)

enable plugin and restart your platform:

tutor plugins enable skip_email_validation
tutor dev|local|k8s reboot