Commit f0edcc90 authored by David Haynes's avatar David Haynes 🙆
Browse files

Ensure username is returned (Closes #35)

- I swear I wrote this line before
parent aabf8dfa
......@@ -152,6 +152,7 @@ class SignupForm(forms.ModelForm):
if not self.request.user.is_staff:
if self.request.user.username not in data_username:
raise ValidationError('username', "This is not your NetID!")
return data_username
username = forms.CharField(
required=True,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment