fix not returning error from Login, remove old code

This commit is contained in:
Lion Kortlepel authored and Lion committed 2024-02-24 20:26:26 +01:00
1 parent 9dcfa1dca4
commit 8c9d3a5455
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -14,6 +14,7 @@
#include <ws2tcpip.h>
#include "Startup.h"
#include "Logger.h"
#include <nlohmann/json.hpp>
#include <charconv>
#include <thread>
#include <set>
@@ -138,7 +139,6 @@ void Parse(std::string Data,SOCKET CSocket){
Auth["role"] = UserRole;
}
Data = Auth.dump();
Data = "N{\"Auth\":"+std::to_string(LoginAuth)+",\"username\":\"" + Username + "\",\"role\":\"" + UserRole + "\"}";
}else{
Data = "N" + Login(Data.substr(Data.find(':') + 1));
}