mirror of
https://github.com/django/django.git
synced 2025-03-03 13:34:26 +00:00
Removed unnecessary if statement in createsuperuser command.
This commit is contained in:
parent
98eb91171d
commit
264eeaf14a
@ -125,13 +125,13 @@ class Command(BaseCommand):
|
||||
|
||||
# Get a password
|
||||
while password is None:
|
||||
if not password:
|
||||
password = getpass.getpass()
|
||||
password2 = getpass.getpass(force_str('Password (again): '))
|
||||
if password != password2:
|
||||
self.stderr.write("Error: Your passwords didn't match.")
|
||||
password = None
|
||||
continue
|
||||
|
||||
if password.strip() == '':
|
||||
self.stderr.write("Error: Blank passwords aren't allowed.")
|
||||
password = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user