Closed elmerv closed 7 months ago
Thanks for the details reproduction steps @elmerv! I agree these are same issue, I don't think we're leveraging the Notifications
class or the Notice
component to catch these non-ok responses and publish.
@tommcgee Could be a good one for you if you need a quick win.
API errors are not displayed on trivial-ui accept invitation page. I ran the following tests:
Test: See if I can try changing the email in invitation url, but have the same token.
Doesn’t work. Api shows a 401. Not sure if we should change message, since it seems that you created an account even though it failed. Steps to reproduce:
On step 5, I expected some message similar to the 401 pop up on the invitation page and no redirection, but received a redirection to "You have successfully accepted the invitation, sign in" page.
Test: See if I can reuse an invitation token token after being kicked out.
Steps to reproduce:
On step 5, I expected a "Invalid token or expired token" or "unauthorized" message, but I was redirected to the "You have successfully accepted invitation, sign in to Trivial" instead.