Custom database - Try works, actual login does not

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”));

Hey there!

Sorry for such delay in response! We’re doing our best in providing the best developer support experience out there, but sometimes the number of incoming questions is just too big for our bandwidth. Sorry for such inconvenience!

Do you still require further assistance from us?