Forgot Password / Password Reset

Currently it is possible to have a custom login & signup page WIX sites.

Does anybody know if it is possible to create a custom forgot password page. When I use wixUsers.promptForgotPassword(); it just brings the user to the generic WIX forgot password page. This somewhat defeats the purpose of having custom login and signup pages.

Is it possible to create a custom forgot password page where the user can input their email to receive a reset password email ?

7 Likes

Hi Mike,

A this point it is not possible to implement a custom Forgot Password flow using Wix Code.
We hope to offer this feature in the future.

1 Like

Yes i think it is a feature that is urgently required as currently a website user will get an email from WIX should they use the generic WIX forgot password page, the email has a big WIX logo and states click this link to reset password. This is not ideal that the website users would be recieveing emails from WIX. It destroys the professional asthetic appeal of creating a custom branded website

3 Likes

@mikemoynihan99 @admin-23 @stevesoftwareservice Do you all know if this feature has been rolled out? Needing to update the users password with a custom reset API if possible! (using custom login and members area)

@tarrahopwood

Still only the Wix one which we can access through our custom login/signup lightboxes via using promptForgotPassword in our code.
https://www.wix.com/corvid/reference/wix-users.html#promptForgotPassword

@tarrahopwood I have sent an email to the Wix CRM/Users API Product Manager @ella-bar-or to address this. The APIs are currently incomplete here and are also missing a changePassword capability. You can only change your password at the moment if you are logged out of the site and then invoke the promptForgotPassword() function or use the forgot password link on the standard Wix Login Form.

The CRM and Users backend is non trivial due to the need to maintain a secure user environment but these are basic features that need to be sorted.

@stevesoftwareservice Understood - that is dissapointing. If we have created a custom member login processes - is there still a way to seamlessly integrate the promptForgotPassword? (i understand it will be off-brand).

This is the code that I have used in my custom login lightbox, the forgot password function is at the start of the code with a simple ‘Forgot Password’ text on the lightbox itself.

import wixUsers from 'wix-users';
import wixLocation from 'wix-location';
import wixWindow from 'wix-window';

$w.onReady(function () {
 $w("#forgotPassword").onClick( (event) => {
    //wixWindow.lightbox.close()
   wixUsers.promptForgotPassword()
   .then( ( ) => {
   //
   } )
    .catch( (err) => {
    let errorMsg = err;  //"The user closed the forgot password dialog"
    });
 });
});

export function loginButton_onclick(event) {

 let email = $w("#email").value;
 let password = $w("#password").value;

 wixUsers.login(email, password)
   .then( () => {
     console.log("User is logged in");
     wixWindow.lightbox.close();
     wixLocation.to(wixLocation.url);  //This reloads the same page and allows code to show hidden member parts.
   } )
    .catch( (err) => {
     console.log(err);
     $w("#errorMessage").expand();  // You can delete this line if you are not going to add an error message.  Use a regular text element set to 'collapse on load' from the Properties Panel.
   } ); 
}

@givemeawhisky Thank you! I will work to adapt to my login page ! Appreciate the code :slight_smile:

@tarrahopwood @givemeawhisky This only works if the user is logged out though so make sure you factor that into your code! :slight_smile:

Hi Mike. I have just posted a comment on this. Any chance you could comment on whether this is in any future releases? Love the product, but I just can’t release a site that relies on basic wix boilerplate emails for resetting of passwords.

1 Like

Anything back on this Steven?

Not yet :frowning:

Did you mean Ido?

That is a shame, would be good if we had at least some sort of indication as to if it will added sometime this year or if it isn’t going to be in the pipeline for a good while yet.

1 Like

I think he did :slight_smile:

@stevesoftwareservice - any update on this? I too am needing to customize this flow - at the very least at the end of the flow I want to re-direct the user to my custom login page , not the Wix default page. At least it seems that the email sent has been updated a bit (it no longer shows the Wix brand), but of course would be much better if we could create our own trigger email:

2 Likes

Adding my name to the list on this one, having now developed custom sign up and log in, it’s frustrating to then undermine all of that by not doing something as basic as password reset

4 Likes