Lodestone-Team / lodestone_core

The backend for Lodestone, A free, open source server hosting tool for Minecraft and other multiplayers
https://www.lodestone.cc/
GNU Affero General Public License v3.0
60 stars 7 forks source link

Improve user login errors #107

Closed Ynng closed 1 year ago

Ynng commented 1 year ago

Description

Currently, when a user tries to login. If the username is incorrect, the server replies with a 404 error. If the password is incorrect, the server replies "Unauthorized", "Credential mismatch"

The server should not use 404 for "user not found" in this case, and reply with the exact same response in both cases

hanmindev commented 1 year ago

Fixed in #110