Closed aleokdev closed 3 years ago
Working correctly with FILE strategy at least as of b015d880
Bug has been reproduced with database strategy. @Mcdostone can you check for 1.15.2 if this is working properly?
Issue identified:
Right now, using DATABASE strategy and without using emails, only one player can register because the email field is required and unique, but it is also equal to ''
for everyone.
As it also compares by emails, the first player to register already has ''
as email address, which results in a PlayerAlreadyExistException
@Mcdostone I think this is still happening on your branch
@Mcdostone I just modified the readme (removed the unique constraint on email) and changed the query in src/main/java/io/chocorean/authmod/guard/datasource/db/playerDAO.java:public IPlayer find(IPlayer player) throws SQLException
Describe the bug
When trying to register, a single message is sent, "Someone has already registered with this username or email", even though only one other user has registered (with a different username)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should let me register.
Versions
Authmod 3.0, Minecraft 1.12.2