constnumber_of_created_accounts=yieldmodels.sequelize.query(`select count(*) as result from identities i join accounts a on a.user_id=i.user_id where i.provider='email' and i.phone='${email}' and a.created=1 and a.ignored<>1`);
if (number_of_created_accounts&&number_of_created_accounts[0][0].result>0){
console.log(
"-- /submit_email there are created accounts -->",
constnumber_of_created_accounts=yieldmodels.sequelize.query(`select count(*) as result from identities i join accounts a on a.user_id=i.user_id where i.provider='phone' and i.phone='${phone}' and a.created=1 and a.ignored<>1`);
if (number_of_created_accounts&&number_of_created_accounts[0][0].result>0){
console.log(
"-- /submit_mobile there are created accounts -->",