Skip to content

ViewResetPassword ​

Overview ​

Default reset password view, the page a password reset email links to. Checks the link, then asks for a new password and its confirmation inside an AuthorizingForm card.

The emailed link carries the account's pk in its path and the token in its query, so a route passes both as props, for example /reset-password/:pk with props: (route) => ({ pk: route.params.pk, token: route.query.token }). A link the server rejects shows the invalid-message slot instead of the form. After a successful reset the view goes to signInTo.

Replace pieces through the field(password), widget(password), field(password_confirm), widget(password_confirm), action-bar, and invalid-message slots; any other AuthorizingForm or ActionForm slot is forwarded through.

Props ​

NameTypeRequiredDefaultDescription
pkstringyesThe account identifier from the reset link's path.
tokenstringyesThe reset token from the reset link's query string.
signInTostring|object() => ({ name: "sign-in" })Route location to go to after a successful reset, and for the "Sign in" link.
forgotPasswordTostring|object() => ({ name: "forgot-password" })Route location for requesting a new link when this one is invalid.

Slots ​

NameScopedDescription
auth-form-prefix-header
auth-form-inneryes
headeryes
contentyes
suffix
invalid-message
field(password)yes
widget(password)yes
field(password_confirm)yes
widget(password_confirm)yes
action-baryes

Full slot reference

Events ​

NameDescription
form-objectEmitted on mount with a readonly ref to the reactive form values object.
form-contextEmitted on mount with the form context. Use its methods for programmatic form updates.

Full event reference

Source ​

client/lib/views/ViewResetPassword.vue