From bda5fbca6e47ca5c19078d68c673179a057d9167 Mon Sep 17 00:00:00 2001 From: darta Date: Tue, 1 Jun 2021 12:42:34 +0000 Subject: [PATCH] reset_pwds.py exculde ddadmin user --- admin/src/reset_pwds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/src/reset_pwds.py b/admin/src/reset_pwds.py index b4ecee2..cbc502a 100644 --- a/admin/src/reset_pwds.py +++ b/admin/src/reset_pwds.py @@ -52,7 +52,7 @@ class KeycloakClient(): users=self.get_users_with_groups_and_roles() userupdate=[] for u in users: - if u['username'] not in ['admin'] and not u['username'].startswith('system_'): + if u['username'] not in ['admin','ddadmin'] and not u['username'].startswith('system_'): print('Generating password for user '+u['username']) userupdate.append({'id':u['id'], 'username':u['username'], @@ -132,4 +132,4 @@ class KeycloakClient(): return list_dict_users k=KeycloakClient() -k.update_pwds() \ No newline at end of file +k.update_pwds()