How to fix /null redirect when implementing a password reset form with current password verification? Answered
Does anyone have any issues when redirecting a Reset-Password form? For some reason, the form works (I get the email to reset my password), but the redirect, even though is setup correctly, sends me to a /null.
Link to the reset page - https://sphereworks.webflow.io/forgot-password
Comments
15 comments
move the data-ms-form='forgot-password' attribute to the <form> itself.
that should fix the problem.
I did, it doesn’t seem to work
Initially, when you sent the screenshot, I had it on the Form Element in Webflow like this:
I moved it now to the Form Div and it still won’t work
I'm still seeing it on the div above the form.
Can you check now? Just published the changes
still there
you probably need to open up the "Form 3" dropdown in the editor
I'm sharing the read-only link. I swear this thing is removed haha
https://preview.webflow.com/preview/sphereworks?utm_medium=preview_link&utm_source=designer&utm_content=sphereworks&preview=d9c400a7fc829a9e4195accc6e125ef9&pageId=65556e03943eef6ca3faac78&workflow=preview
ah I can't see the elements on the left with the read only link.
you might be experiencing a really annoying webflow bug. Sometimes updating / moving attributes doesn't reflect in the published site.
The fix for that is to delete the attribute, publish the site, and then add it back.
Should it be in the form element, or in the form div inside the form element?
hmm I think the element you have highlighted
Sometimes theres a webflow issue where things you do dont publish - try to refresh the designer page, make the change, then republish
I'm trying to create a reset password form.
I can't seem to find a custom attribute I can add for the current password field.
I want the user to be able to enter their current password and a new password, and if the current password matches, it changes their password.
I believe data-ms-member="current-password" is the attribute you can use for the current password field. Hope this helps.
is this for logged in users? If yes, the data-ms-form attribute should have the value "password" instead of "reset-password" and it should work as you intend it to.
I tried applying the change, however on submit I receive this error from memberstack:
Cannot read properties of null (reading 'value')
Test mode link:
https://preview.webflow.com/preview/zen-script-central-dd7ab6?utm_medium=preview_link&[…]&pageId=67aa2c60742c0ef7f456b17f&locale=en&workflow=preview
can you change the new password's attribute value to 'new-password' instead of 'password'? Let me know if that works.
This resolved the issue, many thanks!
Please sign in to leave a comment.