Skip to content

Commit

Permalink
Update ui.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
REVRBE authored May 3, 2023
1 parent 50502ac commit 7f0aefb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ui/ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <thread>

bool loginFailed = false;
bool loginSuccessful = false;

void ui::renderSecondPrompt() {
const std::string& user_rank_local = globals.user_rank;
Expand Down Expand Up @@ -79,9 +78,6 @@ void ui::render() {
if (loginFailed) {
ImGui::TextColored(ImVec4(1, 0, 0, 1), "Login failed, try again.");
}
if (loginSuccessful) {
ImGui::TextColored(ImVec4(0, 1, 0, 1), "Login successful!");
}

ImGui::Spacing();
static int currentColorScheme = 0;
Expand All @@ -104,7 +100,6 @@ void ui::render() {
if (ImGui::Button("Login")) {
bool login = checkLoginCredentials(globals.user_name, globals.pass_word);
loginFailed = !login;
loginSuccessful = login;

if (login) {
std::this_thread::sleep_for(std::chrono::milliseconds(rand() % 6000 + 2000));
Expand Down

0 comments on commit 7f0aefb

Please sign in to comment.