Bungeecord support added x21

This commit is contained in:
Michael Wain 2025-03-23 17:16:32 +03:00
parent 9977531e7a
commit 800a4820bd

View File

@ -334,12 +334,12 @@ public class SaltNic extends NanoHTTPD {
boolean validSession = PasswordHasher.checkPassword(password, this.storage.getUserPasswordByName(username)); boolean validSession = PasswordHasher.checkPassword(password, this.storage.getUserPasswordByName(username));
if (validSession) { if (validSession) {
return newFixedLengthResponse(Response.Status.OK, "application/json", "{}"); return newFixedLengthResponse(Response.Status.OK, "text/plain", JsonStream.serialize(new SignUpResponse(UserId.generateUserId(username))));
} else { } else {
return invalidSession; return invalidSession;
} }
} catch (Exception e) { } catch (Exception e) {
logger.info("Error while processing join request from client: " + e.getMessage()); logger.info("Error while processing login request from client: " + e.getMessage());
return invalidSession; return invalidSession;
} }
} }