Repository navigation
v0.5.102
Upgrading
- Run
kit:update plan|applyforsession-ui(re-pinnedsha256:16054cbc…e084→sha256:19cdf4c2…a360):Auth/Login,Auth/ForgotPassword,Auth/ResetPassword,Auth/ConfirmPassword,Auth/VerifyEmailandAuth/Invitation/Showtake the auth-state fixes below.ResetPasswordViewModelgainsstatus; a host that hand-copiestypes/kit.d.tscopies it again. A host overridinglang/vendor/kit/{locale}/ui.phpcan addform.throttledandform.throttled_retry.
Fixed
- The guest auth pages keep a rate-limited submit in the card. A 429 from a limiter (Fortify's login limiter, the verification resend, a reset or reset-link request) opened Inertia's error modal over the page.
Auth/Login,Auth/ForgotPassword,Auth/ResetPassword,Auth/ConfirmPasswordandAuth/VerifyEmailnow refuse the modal for a 429 only (onHttpExceptionreturns false), clear the stale field errors and show an in-card alert (role="alert"): "Too many requests. Try again in N seconds." when the response carriesRetry-After, else "Too many requests. Try again in a moment." The copy is in the kit'suilang file (form.throttled,form.throttled_retry). Any other HTTP error still gets Inertia's modal; nothing the server allows or limits changes. - A failed sign-in, reset or confirmation clears the password and marks the field.
Auth/Login,Auth/ResetPasswordandAuth/ConfirmPasswordreset their password fields on error, setaria-invalidon the fields with an error, and move focus to the first one (the email after bad credentials). - A bad or expired reset token is visible. Fortify reports it on
email, a hidden field onAuth/ResetPassword, so nothing showed. It now shows as an in-card alert with a "Request a new link" link to/forgot-password. - The reset-password page's status comes from its view model.
ResetPasswordViewModeltakesstatus(the flashed session status), so theFormStatusadded in v0.5.97 shows the server's status without the host supplying it. - The sign-in page focuses the email field on load, as
Auth/ConfirmPasswordalready focuses the password.
Changed
- The auth forms validate in the card, not in the browser.
Auth/Login,Auth/ForgotPassword,Auth/ResetPassword,Auth/ConfirmPasswordand the sign-up form onAuth/Invitation/Showcarrynovalidate, so the server's field errors render in the card (an address like "nobody" gets the "valid email address" error) instead of the browser's own bubble. The fields keeptype="email",requiredandautocomplete.
What's Changed
- Keep session-ui auth failures and 429s in the card (0.5.x) by @jaspertey in #449
- Release v0.5.102 by @jaspertey in #474
Full Changelog: v0.5.101...v0.5.102