Closed amihos closed 1 year ago
Hi there @amihos !
Seems like you are creating the issue by yourself.
There's a loop icon beside the text area where you have to type the email. Just click it and it will generate an email address which won't causing problems like this. There's no need to provide actual email addresses as it isn't going to send any emails to it. It is just used as an identifier. When duplicated ones being used, it'll confuse the script and end up giving an error.
Please refer the screenshot below to know the loop icon that I'm talking about.
Using random generated identifiers is not the best way to manage users. Specially when you are concerned about their consumption and/or expiray. In this scenario you don't know who is who. One should use names or emails or anything that admin recognize.
However this is not the issue! The issue comes from the fact that when you create a user with whatever identifier, if you remove it immediately it won't get removed from database. So if you later use the very same identifier even though you think it's only one in the panel, actually there are two items in the database and hence the error comes.
So the question is why when you remove an identifier from panel, it won't get removed from database?
Originally posted by @amihos in https://github.com/NidukaAkalanka/x-ui-english/issues/106#issuecomment-1381984355