Password field may be optional from the Docker CLI
This commit is contained in:
parent
4abd1e8a9d
commit
8eacbfbce4
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ def generate_headers(role='read'):
|
|||
def create_user():
|
||||
user_data = request.get_json()
|
||||
username = user_data['username']
|
||||
password = user_data['password']
|
||||
password = user_data.get('password', '')
|
||||
|
||||
# UGH! we have to use this response when the login actually worked, in order
|
||||
# to get the CLI to try again with a get, and then tell us login succeeded.
|
||||
|
|
Reference in a new issue