Skip to content

Commit

Permalink
Merge pull request #666 from osuosl/vikurtz/captcha
Browse files Browse the repository at this point in the history
Fix for ignored CAPTCHA
  • Loading branch information
ramereth authored Sep 9, 2022
2 parents bfb923f + 622130b commit b530b6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion streamwebs_frontend/streamwebs/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def clean_email(self):


class UserFormEmailAsUsername(forms.ModelForm):
captcha = ReCaptchaField()
password = forms.CharField(
widget=forms.PasswordInput(),
label=_('Password'))
Expand Down Expand Up @@ -176,7 +177,6 @@ def clean_password(self):


class UserProfileForm(forms.ModelForm):
captcha = ReCaptchaField()
school = forms.ModelChoiceField(
widget=forms.TextInput(),
queryset=School.objects.all().order_by('name'), empty_label=None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ <h3 class="teal-text col s12 center">New Organization</h3>
<div class="row">
<!-- Captcha -->
<div class="input-field col s8 offset-s2">
<label for="{{ profile_form.captcha.id_for_label }}"></label>
{{ profile_form.captcha.errors }}
{{ profile_form.captcha }}
<label for="{{ user_form.captcha.id_for_label }}"></label>
{{ user_form.captcha.errors }}
{{ user_form.captcha }}
</div>
<!-- Submit button -->
<div class="col s8 offset-s2">
Expand Down

0 comments on commit b530b6f

Please sign in to comment.