reset username and role on logout

This commit is contained in:
Lion Kortlepel 2024-02-09 15:26:48 +01:00 committed by Lion
parent 9c7034e401
commit bd4cfe06b1

View File

@ -46,6 +46,8 @@ std::string GetFail(const std::string& R){
std::string Login(const std::string& fields){
if(fields == "LO"){
Username = "";
UserRole = "";
LoginAuth = false;
UpdateKey(nullptr);
return "";