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
@@ -47,8 +47,7 @@ async def _create_and_log_admin_reset_link(user_uuid, message, session_type) ->
expires=authsession.expires(),
info={"type": session_type},
)
base = hostutil.auth_site_base_url()
reset_link = f"{base}{token}"
reset_link = hostutil.reset_link_url(token)
logger.info(ADMIN_RESET_MESSAGE, message, reset_link)
return reset_link