Fix the registry to work with unicode usernames in LDAP.

This commit is contained in:
Jake Moshenko 2014-05-13 15:22:31 -04:00
parent f049f738da
commit 2da8b4737e
4 changed files with 57 additions and 40 deletions

View file

@ -95,8 +95,7 @@ def create_user():
abort(400, 'Invalid robot account or password.',
issue='robot-login-failure')
existing_user = model.get_user(username)
if existing_user:
if authentication.user_exists(username):
verified = authentication.verify_user(username, password)
if verified:
# Mark that the user was logged in.