mirror of
https://github.com/nikdoof/django-testauth.git
synced 2025-12-18 04:09:24 +00:00
Fix typo
This commit is contained in:
@@ -40,7 +40,7 @@ class TESTAuthBackend:
|
||||
user.set_unusable_password() # disable login through Model backend
|
||||
if email:
|
||||
user.email = email
|
||||
if name
|
||||
if name:
|
||||
user.first_name = name
|
||||
user.save()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user