From 885d68c0099a4511c8bbaa5265b330a8ebcfe407 Mon Sep 17 00:00:00 2001 From: Andrea Cimbalo Date: Sat, 16 Sep 2017 12:20:26 +0200 Subject: [PATCH] fix typo --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index d224c00..f87ca9c 100755 --- a/server.py +++ b/server.py @@ -83,7 +83,7 @@ def get_user(user, user_name): @requires_same_user_or_admin_auth def update_user(user, user_name): new_lilik_user = request.get_json() - app.logger.info('User <{}> editing user <{}>'.format(user.id, user_name)) + app.logger.info('User <{}> editing user <{}>'.format(user.uid, user_name)) user_to_edit = lilik_ldap.get_user(user_name) diff = user_to_edit.diff(new_lilik_user) is_permitted_self_changes = diff.changed() <= set(['cn']) and diff.removed() == set() and diff.added() <= set(['userPassword']) @@ -95,7 +95,7 @@ def update_user(user, user_name): @requires_auth @requires_admin_auth def new_user(user): - app.logger.info('User <{}> create a new user'.format(user.id)) + app.logger.info('User <{}> create a new user'.format(user.uid)) new_lilik_user = request.get_json() app.logger.info(lilik_ldap.new_user(new_lilik_user)) return jsonify(lilik_ldap.get_user(new_lilik_user['uid']).to_dict())