I made my custom login but the login button doesn't work and I made sure it's valid in the Code panel. Any ideas on how I can make my login but work?
top of page
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
bottom of page
I've had right the whole time....
Ok, I will take a look right now.
Maybe, it could be my button?
import wixUsers from 'wix-users'; import wixLocation from 'wix-location'; import wixWindow from 'wix-window'; $w.onReady(function () { $w('#fogortPassword').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. } ); }
Could you please iput your code here in TEXT-form?
Use the Code-Tags please.
https://lh3.googleusercontent.com/-6hLyHeTkqQU/XwjHLNzI35I/AAAAAAAALCM/FfrJXFybk_gBqQmJd6AHK8PIL8-UdbxigCK8BGAsYHg/s0/2020-07-10.png
https://lh3.googleusercontent.com/-mBN3m3vCzns/XwjGm5SqSTI/AAAAAAAALCA/PlL8UinEgJEIYfYDIzKteIV6NTJ18faRACK8BGAsYHg/s0/2020-07-10.png
Pictures coming right now.
Hello Haiden, i try to see your project...wait a minute...
Sorry could not see anything 😁
1) Code?
2) Pics?
3) Structure?
4) Console-errors?
Where are all the INPUTS?