Fix the registry to work with unicode usernames in LDAP.
This commit is contained in:
parent
f049f738da
commit
2da8b4737e
4 changed files with 57 additions and 40 deletions
|
@ -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.
|
||||
|
|
Reference in a new issue