Skip to content

Commit

Permalink
fix login failure messages
Browse files Browse the repository at this point in the history
definitely for rebirth not sure about til death
  • Loading branch information
poco0317 committed Oct 23, 2021
1 parent e779370 commit 942869f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Themes/Rebirth/BGAnimations/playerInfoFrame/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ local t = Def.ActorFrame {
end,
LogOutMessageCommand = function(self)
self:playcommand("Set")
ms.ok("Logged out")
end,
LoginFailedMessageCommand = function(self)
self:playcommand("Set")
ms.ok("Login Failed")
end,
OnlineUpdateMessageCommand = function(self)
self:playcommand("Set")
Expand Down
4 changes: 4 additions & 0 deletions src/Etterna/Singletons/DownloadManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2218,6 +2218,7 @@ DownloadManager::StartSession(
DLMAN->authToken = DLMAN->sessionUser = DLMAN->sessionPass = "";
MESSAGEMAN->Broadcast("LoginFailed");
DLMAN->loggingIn = false;
return;
}

if (d.HasMember("data") && d["data"].IsObject() &&
Expand All @@ -2231,6 +2232,9 @@ DownloadManager::StartSession(
DLMAN->sessionPass = pass;
} else {
DLMAN->authToken = DLMAN->sessionUser = DLMAN->sessionPass = "";
MESSAGEMAN->Broadcast("LoginFailed");
DLMAN->loggingIn = false;
return;
}
DLMAN->OnLogin();
callback(DLMAN->LoggedIn());
Expand Down

0 comments on commit 942869f

Please sign in to comment.