Auth0 Home Blog Docs

Custom database - Try works, actual login does not


#1

For testing purposes, I have simple javascript that validates the login. When I use the Try-button, it succeeds, however (after deleting the just created user) logging in as this user does not. The DB-connection has been enabled for my app.

I’m currently using a free plan, but still have 20-something days left for trial of paid features. Could this be the problem?

This is my login code:

if (email === ‘dbuser@docati.com’) {
if (password === ‘Welkom01’) {
var profile = {
“email”: email,
“email_verified”: true,
“nickname”: “dbuser”,
“picture”: “https://lh4.googleusercontent.com/-OdsbOXom9qE/AAAAAAAAAAI/AAAAAAAAADU/_j8SzYTOJ4I/photo.jpg”,
“id”: “docati-IdP-old|103547991597142817347”
};
callback(null, profile);
}
}

callback(new WrongUsernameOrPasswordError(email, “niet werkende combi”));