remove key if auth is unsuccessful

This commit is contained in:
snepsnepsnep 2022-09-04 20:24:27 +02:00
parent cd829f9f22
commit 832b1d66a0

View File

@ -94,7 +94,8 @@ void CheckLocalKey(){
d.Parse(Buffer.c_str()); d.Parse(Buffer.c_str());
if (Buffer == "-1" || Buffer.at(0) != '{' || d.HasParseError()) { if (Buffer == "-1" || Buffer.at(0) != '{' || d.HasParseError()) {
error(Buffer); error(Buffer);
fatal("Invalid answer from authentication servers, please try again later!"); info("Invalid answer from authentication servers.");
UpdateKey(nullptr);
} }
if(d["success"].GetBool()){ if(d["success"].GetBool()){
LoginAuth = true; LoginAuth = true;