mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-02-06 16:10:39 +00:00
fix: re
This commit is contained in:
parent
8495c632d5
commit
833edab852
|
@ -89,8 +89,10 @@ class KanidmAdminToken:
|
|||
stderr=subprocess.DEVNULL,
|
||||
)
|
||||
|
||||
new_kanidm_admin_password = re.findall(r'{"password":"([^"]+)"}', output)[-1]
|
||||
# we have many not json strings in output
|
||||
match = re.search(r'"password":"([^"]+)"', output)
|
||||
new_kanidm_admin_password = match.group(
|
||||
1
|
||||
) # we have many not json strings in output
|
||||
|
||||
redis.set("kanidm:password", new_kanidm_admin_password)
|
||||
return new_kanidm_admin_password
|
||||
|
|
Loading…
Reference in a new issue