NikitaCartes / EasyAuth

Easy authentication mod for Fabric servers
MIT License
119 stars 23 forks source link

[BUG] Offline nickname support works only with nicknames that 6< letters long. #161

Closed Misha4ek closed 1 month ago

Misha4ek commented 1 month ago

Versions

Describe the bug Whenever player with offline account tryes to join, they recive "lost connection: Failed to verify username!" Only works with nicknames that <=5 letters long. To Reproduce Steps to reproduce the behavior:

  1. Create offline account with nickname that is no longer than 5 letters.
  2. Try to join offline server with mod on.
  3. See error.

Expected behavior Any nickname is sutable for joining.

Additional context I host minecraft server on my pc. Before mod we had player with nick "ert" and after the mod I was forced to transfer all progress to another nickname that 7 letters long.

NikitaCartes commented 1 month ago

You can change regex that verifies usernames in config:

Default value: ^[a-zA-Z0-9_]{3,16}$ Although it should allow players with >=3 symbols