LiveCloud Forums
double account email in cdbUsers Table - Printable Version

+- LiveCloud Forums (https://forums.livecloud.io)
+-- Forum: General (https://forums.livecloud.io/forumdisplay.php?fid=1)
+--- Forum: Getting Started (https://forums.livecloud.io/forumdisplay.php?fid=4)
+--- Thread: double account email in cdbUsers Table (/showthread.php?tid=457)



double account email in cdbUsers Table - miyaa - 08-08-2020

Are you another way, so that there is no double account register in the cdbUsers table.

if I register with an email with the same password. then there will be a double account register.

example
email: email@example.com
password: Test123

and then

email: email@example.com
password: TEst123

then what happens in the cdbUsers table will occur 2 email accounts. I don't think this is ideal and it shouldn't be like this. There should be only 1 register account in the user table.

I tried to use the cdb_advancedQuery function but the users table cannot query. so you can't check if the same email can't double register.

Are there any other solutions to prevent double accounts?

Thanks


RE: double account email in cdbUsers Table - efrain.c - 08-10-2020

Hi miyaa,

We've confirmed this is a bug. We will push out an update so the API checks for this.

In the meantime you can use cdb_readUsersByEmail (https://docs.livecloud.io/ReadUsersByEmail/) to check if a user with the given email exists before you create the user account.


RE: double account email in cdbUsers Table - mark_talluto - 08-11-2020

The bug has been corrected. Please give it a try.
The issue was server-side. No new libraries are needed.


RE: double account email in cdbUsers Table - miyaa - 08-11-2020

thanks. problem has been resolved