Login click is not working


e.preventDefault();

var button = this;

var button = this;

var username = document.getElementById('email').value;

var username = document.getElementById('email').value;

var password = document.getElementById('password').value;

var password = document.getElementById('password').value;

button.disabled = true;

button.disabled = true;

console.log(username , password);

webAuth.login({

webAuth.login({

realm: databaseConnection,

realm: databaseConnection,

username: username,

username: username,

password: password,

password: password,

captcha: captcha.getValue()

captcha: captcha.getValue()

}, function(err) {

}, function(err) {

if (err) displayError(err);

if (err) displayError(err);

button.disabled = false;

button.disabled = false;

});

});

}

}

this is returning below error

  1. Request URL:

https://dev-uq7a1hnypawe3uje.us.auth0.com/usernamepassword/login

  1. Request Method:

POST

  1. Status Code:

404

Hi @divya,

Welcome to the Auth0 Community!

I understand that you have issues with the login click not working.

In this case, could you please verify that your Custom Universal Login page code creates the request to the correct Database connection?

Typically, this error can happen when the realm parameter in the webAuth() call is made to an incorrect database connection.

Please let me know how this goes for you.

Thanks,
Rueben

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.