Allow renewing password setup links
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s

This commit is contained in:
tegwick 2026-07-28 17:33:12 +02:00
parent 4efce34821
commit 746bf21715
2 changed files with 10 additions and 0 deletions

View file

@ -472,6 +472,9 @@ class PortalApplication:
status = tenant_account.status if tenant_account else AccountStatus.INVITED
action = (
f"""<span>Linked as {escape(directory.subject)}</span>
<form method="post" action="/admin/{escape(tenant)}/users/{escape(membership.user_id)}/provision">
<input type="hidden" name="csrf_token" value="{escape(csrf_token)}">
<button type="submit">Create password setup link</button></form>
<form method="post" action="/admin/{escape(tenant)}/users/{escape(membership.user_id)}/status">
<input type="hidden" name="csrf_token" value="{escape(csrf_token)}">
<input type="hidden" name="status" value="{'active' if status == AccountStatus.SUSPENDED else 'suspended'}">