Hi!
So I have used custom login and registration on my pages, which has been working fine, but suddenly today they give error 500.
So the code looks like this:
import wixUsers from ‘wix-users’;
import wixWindow from ‘wix-window’;
import wixLocation from ‘wix-location’;
$w.onReady( function () {
$w("#loginButton").onClick( (event) => {
let email = $w(“#loginEmail”).value;
let password = $w(“#loginPassword”).value;
wixUsers.login(email, password)
.then(()=>{
wixLocation.to(“https://go-bros.wixsite.com/mysite-7”);
})
. catch ((err) => {
console.log(err);
$w(‘#errortext’).expand();
$w(‘#errorbox’).expand();
} );
})
})
export function resetPassword_click(event) {
wixUsers.promptForgotPassword()
.then( ( ) => {
console.log(“Password reset submitted”);
} )
}
Like I said, it has been working fine before, but now on it gives unknown error 500
on line 15, which is the line with console.log(err);
Is anyone else getting the same issue?
Sincerely,
Niko