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
+16 -1
View File
@@ -3,11 +3,11 @@
#include <dirent.h>
#include <filesystem>
#include <iostream>
#include <stdio.h>
#include <string>
#include <termios.h>
#include <unistd.h>
#include <fstream>
#include "net.h"
void safe_exit(int code) {
switch (code) {
@@ -33,6 +33,8 @@ void safe_exit(int code) {
break;
}
curl_easy_cleanup(curl);
exit(code);
}
@@ -73,4 +75,17 @@ std::string SoRAuthFile(bool save, std::string data){
}
}
void get_input_and_login() {
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);
}