samolego / SimpleAuth

Simple authentication mod for Fabric or Forge servers.
https://modrinth.com/mod/SimpleAuth
MIT License
39 stars 14 forks source link

[BUG] [Fabric/Forge] #48

Open reemays opened 3 years ago

reemays commented 3 years ago

Mod Loader

Versions

Describe the bug Players need to register back every time the server crashes or restarts.

To Reproduce Steps to reproduce the behavior:

  1. Enter the server
  2. Register your account
  3. Disconnect from server
  4. If sessionTimeoutTime set to -1, just login back. Otherwise if default wait for 60
  5. Try to login and it should be working
  6. Disconnect and stop the server
  7. Relaunch server
  8. Get in the server
  9. Popup that said to register again

Expected behavior Able to login with previously created account

Additional context

reemays commented 3 years ago

Update: I noticed that if restarting is successful, then the problem is no longer there. It just there if the server crashes, which for me happened a lot since the server is low-spec. I think it has something to do with this mod doesn't save the details of the account while the server is running.

samolego commented 3 years ago

The data is saved in batch on the server stop in order to save performance. If server crashes though, it might not be saved then ...