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
Thank you for your answers, let´s hope they fix it soon!
With your issue, check previous posts about it as it is an ongoing issue for certain people who are unlucky enough to get caught up in the affected servers.
See the older posts from earlier.
https://www.wix.com/corvid/forum/community-discussion/wix-users-and-more-is-down
https://www.wix.com/corvid/forum/community-discussion/help-login-and-signup-just-stopped-working
Ours just stopped working today too!!