Custom Member Registration, Log In & Forgot Password

I’ve been using wix for 3 years now. At this point I want to roll out a community site for my customers.
I’ve been having some issues lately even after following every Wix Article in detail for the same. Followed Wix Api documentation, codequeen’s articles & Wix Trainig Academy code sinppets. Still no luck.

Custom Member Sign Up & Log In Lightbox - Corvid Form

I’ve used a custom Corvid form for member Sign Up & Log In and have changed the settings in the Member Sign Up sections accordingly. I’ve also created a Database where the Sign up fields write data into the database to collect member first name, last name & email.

Ref - https://www.wix.com/corvid/forum/main/comment/5e36fe2824c4e100a9563f4b
Sign Up Code -

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

$w.onReady(function () {
 
    $w("#registerButton").onClick( (event) => {
 
 let email = $w("#email").value;
 let password = $w("#password").value;
 let first = $w("#firstName").value;
 let last = $w("#lastName").value;

   wixUsers.register(email, password, {
       contactInfo: {
 "firstName": $w('#firstName').value,
 "lastName": $w('#lastName').value,
       }
      } )
      .then( (result) => {
 let resultStatus = result.status;
        wixLocation.to("/home");
      } );     
    } );
 
}); 

Log In Code -

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

$w.onReady(function () {
 $w("#forgotPassword").onClick( (event) => {
   wixUsers.promptForgotPassword()
   .then( ( ) => {
 //
   } )
    .catch( (err) => {
 let errorMsg = err; 
    });
 });
});

$w.onReady(function(){  
    $w('#loginNow').onClick(function (){    
 let email = $w('#loginEmail').value;    
 let password = $w('#loginPassword').value;  
        wixUsers.login(email,password)  
        .then(()=>{
            wixLocation.to('/home');   
            })

        .catch( (err) => {
        console.log(err);
        $w("#errorMessage").expand();
        });
      });
    });

Issues -

  1. When users Register/ Sign Up for the site, either an Pop Up saying “Confirm Email” shows up for some users and some users are directly logged into the site without email verification.

  2. Although I’m using custom Log In & Sign Up pages, when the Forgot Password is clicked, the native Wix Forgot Password pops up which is known. But, after resetting the password and clicking Ok button, the native Wix Login screen pops up. This might confuse the users who are used to the Custom Log In screen and might also result in duplicates in the CRM as we intend to capture the data into the Database along with the CRM.

Calling out for some help and pointers - Any help is much appreciated.
@GOS @Alexander (Wix) @Anat Wix @Avi Guzansky (Wix)

#CustomMemberRegistration #CustomLogIn #ForgotPassword

1 Like