diff --git a/apps/newuser/config_newuser b/apps/newuser/config_newuser index ccdfcac..fe01f71 100755 --- a/apps/newuser/config_newuser +++ b/apps/newuser/config_newuser @@ -7,3 +7,8 @@ echo $2 > /nfs/homes/$1/.forward chown -R $3:1000 /nfs/homes/$1 echo $2 | add_members -r - Csua-newmembers if ($4); then echo $2 | add_members -r - Jobs; fi + +#this is for creating the public_html folder and link +mkdir -m 755 /nfs/public_html/$1 +chown -R $3:1000 /nfs/public_html/$1 +ln -s /csua/public_html/$1 /nfs/homes/$1/public_html diff --git a/apps/newuser/forms.py b/apps/newuser/forms.py index 280e43f..7ad0d36 100644 --- a/apps/newuser/forms.py +++ b/apps/newuser/forms.py @@ -34,7 +34,7 @@ class NewUserForm(forms.Form): validators=[validate_username_chars, validate_username_not_in_use] ) password = forms.CharField(widget=forms.PasswordInput()) - #enroll_jobs = forms.BooleanField(required=False, label="Jobs@ List Opt-in") + # enroll_jobs = forms.BooleanField(required=False, label="Jobs@ List Opt-in") agree_rules = forms.BooleanField(required=True) def clean(self): diff --git a/apps/newuser/views.py b/apps/newuser/views.py index 4086210..0dd123d 100644 --- a/apps/newuser/views.py +++ b/apps/newuser/views.py @@ -81,8 +81,8 @@ def _make_newuser(request, form, context): """Creates a new user in LDAP and runs config_newuser if config_newuser fails, the user account is deleted to prevent the user account from being in limbo.""" - #enroll_jobs = "true" if form.cleaned_data["enroll_jobs"] else "false" - #disabling temporarily before the mailman3 migration + # enroll_jobs = "true" if form.cleaned_data["enroll_jobs"] else "false" + # disabling temporarily before the mailman3 migration enroll_jobs = "false" success, uid = create_new_user( form.cleaned_data["username"],