How to disable public account registration in Open edX

To disable public account registration in Open edX, add this flag to the Features array in lms.env.json and cms.env.json:

"FEATURES": {
...
    "ALLOW_PUBLIC_ACCOUNT_CREATION" : false
}

Save and restart the apps:

sudo /edx/bin/supervisorctl restart all