From fac8afab0395e2f4fcddf88fa1942bd30bd03921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Mon, 27 Jul 2020 10:01:01 +0200 Subject: [PATCH] Status Lockbar bei GetLifeTime wird mitgesendet --- geruecht/config.yml | 9 --------- geruecht/routes.py | 3 ++- 2 files changed, 2 insertions(+), 10 deletions(-) delete mode 100644 geruecht/config.yml diff --git a/geruecht/config.yml b/geruecht/config.yml deleted file mode 100644 index 3df779a..0000000 --- a/geruecht/config.yml +++ /dev/null @@ -1,9 +0,0 @@ -AccessTokenLifeTime: 1800 -Database: - URL: 192.168.5.128 - user: wu5 - passwd: E1n$tein - database: geruecht -LDAP: - URL: ldap://192.168.5.128 - dn: dc=ldap,dc=example,dc=local \ No newline at end of file diff --git a/geruecht/routes.py b/geruecht/routes.py index 298b36d..07b78ce 100644 --- a/geruecht/routes.py +++ b/geruecht/routes.py @@ -108,7 +108,8 @@ def _getLifeTime(**kwargs): accToken = kwargs['accToken'] debug.debug("accessToken is {{ {} }}".format(accToken)) retVal = {"value": accToken.lifetime, - "group": accToken.user.toJSON()['group']} + "group": accToken.user.toJSON()['group'], + "lock_bar": accToken.lock_bar} debug.info( "return get lifetime from accesstoken {{ {} }}".format(retVal)) return jsonify(retVal)