Skip to content

Commit ddba4af

Browse files
committed
Fix bug in set password logic
1 parent 923c2a7 commit ddba4af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

datajoint/admin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ def set_password(new_password=None, connection=None): # pragma: no cover
1111
confirm_password = getpass('Confirm password: ')
1212
if new_password != confirm_password:
1313
print('Failed to confirm the password! Aborting password change.')
14+
return
1415
connection.query("SET PASSWORD = PASSWORD('%s')" % new_password)
1516
print('Password updated.')
1617

0 commit comments

Comments
 (0)