User credentials are saved and retrieved from the SQLite database. Next I want to retrieve all songs from icarus and return it to java/kotlin. Some code cleanup
This commit is contained in:
@@ -5,13 +5,18 @@
|
||||
#ifndef MEAR_USER_H
|
||||
#define MEAR_USER_H
|
||||
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
namespace model {
|
||||
struct User
|
||||
class User
|
||||
{
|
||||
public:
|
||||
User() = default;
|
||||
User(const std::string& user, const std::string& pass) :
|
||||
username(user), password(pass) { }
|
||||
User(const std::string&& user, const std::string&& pass) :
|
||||
username(std::move(user)), password(std::move(pass)) {}
|
||||
|
||||
std::string username;
|
||||
std::string password;
|
||||
|
||||
Reference in New Issue
Block a user