"const email = workflow.email
const password = workflow.password
workflow.loginSuccess = false
const accounts = workflow.accounsfound.values()
for (const account of accounts) {
const loginemail = _.get(account, 'newemail', '')
const loginPassword = _.get(account, 'newpass', '')
console.debug(loginemail)
console.debug(loginPassword)
if(email === loginemail && password === loginPassword) {
workflow.loginSuccess = true
break
}
}
"
I used he above execute code card in my login bot to match the user email and password to the bot's kb dataset. but itt is giving me that the credentials are wrong even if they are right and mattch tthe database. I don't know what went wrong. any help?