From 746bf21715497aa4710211fafb43c6a07a7ac07b Mon Sep 17 00:00:00 2001 From: tegwick Date: Tue, 28 Jul 2026 17:33:12 +0200 Subject: [PATCH] Allow renewing password setup links --- src/user_engine/web.py | 3 +++ tests/test_web.py | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/src/user_engine/web.py b/src/user_engine/web.py index 965ca6e..8d706f0 100644 --- a/src/user_engine/web.py +++ b/src/user_engine/web.py @@ -472,6 +472,9 @@ class PortalApplication: status = tenant_account.status if tenant_account else AccountStatus.INVITED action = ( f"""Linked as {escape(directory.subject)} +
+ +
diff --git a/tests/test_web.py b/tests/test_web.py index 5acaf4d..c628f64 100644 --- a/tests/test_web.py +++ b/tests/test_web.py @@ -198,6 +198,13 @@ class PortalApplicationTests(unittest.TestCase): self.assertEqual("200 OK", handoff["status"]) self.assertIn(b"Continue to password setup", html) self.assertIn(b"https://kc.example/setup/password?token=opaque", html) + page, html = invoke( + self.app, + "/admin/tenant:friendly:binky", + cookie="ue_session=browser", + ) + self.assertEqual("200 OK", page["status"]) + self.assertIn(b"Create password setup link", html) class FakeProvisioning: