Fix reset link logic to include /auth when no configured auth-host.

This commit is contained in:
Leo Vasanko committed 2025-10-02 15:57:20 -06:00
1 parent 5d8304bbd9
commit bb35e57ba4
5 files changed
+25 -20

No files matched your search

+1 -2
View File
@@ -69,8 +69,7 @@ async def _create_reset(user, role_name: str):
expires=_authsession.expires(),
info={"type": "manual reset", "role": role_name},
)
base = hostutil.auth_site_base_url()
return f"{base}{token}", token
return hostutil.reset_link_url(token), token
async def _main(query: str | None) -> int: