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

This commit is contained in:
Leo Vasanko
2025-10-02 15:57:20 -06:00
parent 5d8304bbd9
commit bb35e57ba4
5 changed files with 25 additions and 20 deletions
+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: