#539 — Fix reset password for Partner Portal
Repo: Twill-AI/twill-ai-ui State: closed | Status: done Assignee: Unassigned
Created: 2025-07-31 · Updated: 2025-09-15
Description
STR:
- Go to https://fluffy-winner-lm32gle.pages.github.io/auth/forgot-password/, type email and press button.
- Go to email box, find email and press “Reset your Password” button in it.
Expected: Pressing “Reset your Password” in email should open page asking for a password.
Actual: Pressing “Reset your Password” in email opens https://afde-stg-twill-eastus-hxhka3a7ecdqddcw.z03.azurefd.net without any authentication.
Investigation details
supabase.auth.resetPasswordForEmailin front-end app was called with wrong URL, fixed in https://github.com/Twill-AI/twill-ai-ui/pull/540- Supabase can’t redirect to any URL, it always wants to redirect on “siteUrl”, i.e. on https://afde-stg-twill-eastus-hxhka3a7ecdqddcw.z03.azurefd.net in staging and https://my.twillai.com in prod.
- twill-ai-ui in “dev” branch can’t prepare artifacts for Azure Frontdoor so created https://github.com/Twill-AI/twill-ai-ui/pull/541
- Current “reset-password” page can’t be opened without “tenant” information. So replaced it to “(quest)” routing group in scope of https://github.com/Twill-AI/twill-ai-ui/pull/542. Merged to “main” to deploy on Azure Frontdoor in https://github.com/Twill-AI/twill-ai-ui/pull/543.
- GuestRouter logic was updated to handle “reset-password” page differently (i.e. don’t redirect to dashboard) and to track difference with regular TwillAI via existence of role for the user.
- Reset password page validation was changed, slow validation was improved (tens folds)
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets