Password field may be optional from the Docker CLI

This commit is contained in:
Joseph Schorr 2014-07-14 21:24:38 -04:00
parent 4abd1e8a9d
commit 8eacbfbce4

View file

@ -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.