We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b5882df + dbe6675 commit 0c9fac0Copy full SHA for 0c9fac0
datajoint/admin.py
@@ -15,7 +15,7 @@ def set_password(new_password=None, connection=None, update_config=None): # pr
15
connection.query("SET PASSWORD = PASSWORD('%s')" % new_password)
16
print('Password updated.')
17
18
- if update_config or user_choice('Update local setting?') == 'yes':
+ if update_config or (update_config is None and user_choice('Update local setting?') == 'yes'):
19
config['database.password'] = new_password
20
config.save_local(verbose=True)
21
0 commit comments