Small fixes

This commit is contained in:
Skia committed 2016-09-01 16:43:21 +02:00
1 parent f7e3251ae5
commit d27f62dca9
2 files changed
+4 -1

No files matched your search

+2 -1
View File
@@ -81,7 +81,8 @@ class LoginForm(AuthenticationForm):
user = User.objects.filter(email=data['username']).first()
else:
user = User.objects.filter(username=data['username']).first()
data['username'] = user.username
if user:
data['username'] = user.username
kwargs['data'] = data
super(LoginForm, self).__init__(*arg, **kwargs)
self.fields['username'].label = _("Username, email, or account number")