I need sleep

This commit is contained in:
2024-11-27 17:16:48 +01:00
parent a84b70991d
commit 723e955299
5 changed files with 28 additions and 23 deletions
+2 -15
View File
@@ -3,6 +3,7 @@
#include "helper_funcs.h"
#include "main_menu.h"
#include "net.h"
#include "helper_funcs.h"
#include <csignal>
#include <curl/curl.h>
#include <curses.h>
@@ -57,21 +58,7 @@ int main(int argc, char **argv) {
baka_api_url.append("/");
}
{
std::string username;
std::cout << "enter username: ";
std::cin >> username;
std::string password;
password = getpass("enter password: ");
// DEBUG
// std::cout << "\nenter password: ";
// std::cin >> password;
bakaapi::login(username, password);
}
} else {
bakaapi::is_logged_in();
get_input_and_login();
}
main_menu();