mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Fix various issues with the move to UIDs
This commit is contained in:
@@ -24,7 +24,7 @@ class ServiceUsernameField(forms.CharField):
|
||||
def clean(self, request, initial=None):
|
||||
field = super(ServiceUsernameField, self).clean(request)
|
||||
try:
|
||||
acc = ServiceAccount.objects.get(username=field)
|
||||
acc = ServiceAccount.objects.get(service_uid=field)
|
||||
except ServiceAccount.DoesNotExist:
|
||||
return field
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user