mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-22 07:52:15 +00:00
FIX: Whoops, undo accidental whitespace change
This commit is contained in:
@@ -34,6 +34,7 @@ class ProfileRegistrationFormUniqueEmail(RegistrationFormUniqueEmail):
|
|||||||
raise forms.ValidationError("These initials are already in use. Please supply different initials.")
|
raise forms.ValidationError("These initials are already in use. Please supply different initials.")
|
||||||
return self.cleaned_data['initials']
|
return self.cleaned_data['initials']
|
||||||
|
|
||||||
|
|
||||||
class CheckApprovedForm(AuthenticationForm):
|
class CheckApprovedForm(AuthenticationForm):
|
||||||
def confirm_login_allowed(self, user):
|
def confirm_login_allowed(self, user):
|
||||||
if user.is_approved or user.is_superuser:
|
if user.is_approved or user.is_superuser:
|
||||||
|
|||||||
Reference in New Issue
Block a user