Bug fixes (#355)

* we should not require password to update users

* Fixing an issue were roles would not be added.
This commit is contained in:
kevgliss
2016-06-13 17:22:45 -07:00
committed by GitHub
parent 41d1fe9191
commit daea8f6ae4
3 changed files with 2 additions and 4 deletions

View File

@ -191,9 +191,7 @@ class Ping(Resource):
roles.append(role)
# if we get an sso user create them an account
# we still pick a random password in case sso is down
if not user:
# every user is an operator (tied to a default role)
if current_app.config.get('LEMUR_DEFAULT_ROLE'):
v = role_service.get_by_name(current_app.config.get('LEMUR_DEFAULT_ROLE'))