Specifying Allowed Registration Email Patterns

47 views
Skip to first unread message

Andres Gomez

unread,
Sep 22, 2016, 7:26:32 AM9/22/16
to General Open edX discussion
I tried to follow this tutoriel

Specifying Allowed Registration Email Patterns

however it didn't seem to work, I am a noob in most of what I am doing so sorry in advance....


Some information:
- I have installed opendedx on my own server (ubuntu 12.04.5)  at home (native edx)
- I install  export OPENEDX_RELEASE=open-release/eucalyptus.2

I change cms.env.json and lms.env.json

 
 "REGISTRATION_EXTRA_FIELDS": {
        "city": "hidden", 
        "country": "hidden", 
        "gender": "optional", 
        "goals": "optional", 
        "honor_code": "required", 
        "level_of_education": "optional", 
        "mailing_address": "optional", 
        "year_of_birth": "optional"
    },
"REGISTRATION_EMAIL_PATTERNS_ALLOWED" = [
"^.*@(.*\\.)?example\\.com$",
]

"SERVER_EMAIL": "dev...@example.com",


but also tried
"REGISTRATION_EMAIL_PATTERNS_ALLOWED":
{"REGISTRATION_EMAIL_PATTERNS_ALLOWED" = [
"^.*@(.*\\.)?example\\.com$",
]}
and
"REGISTRATION_EMAIL_PATTERNS_ALLOWED" = "^.*@(.*\\.)?example\\.com$",

then I  update...

sudo -H -u edxapp bash << EOF
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
paver update_assets lms --settings=aws --debug
EOF

sudo /edx/bin/supervisorctl restart edxapp:lms

Again I think I am missing something basic but couldn't figure it out...none of those three ways worked form me :(




Reply all
Reply to author
Forward
0 new messages