From 585d084fd3a5da06e04a5c95e41733009799a20e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 15 May 2018 20:39:12 +0200 Subject: Allow storing user without nodes --- src/Database.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/Database.cpp') diff --git a/src/Database.cpp b/src/Database.cpp index 17773ed..874b225 100644 --- a/src/Database.cpp +++ b/src/Database.cpp @@ -655,12 +655,22 @@ namespace odhtdb return true; } - void Database::storeUserPasswordEncrypted(const Hash &nodeHash, const std::string &username, const std::string &password, const Signature::KeyPair &keyPair) + bool Database::doesStoredUserExist(const string &username) const + { + return databaseStorage.doesStoredUserExist(username); + } + + void Database::storeUserWithoutNodes(const string &username, const string &password) + { + return databaseStorage.storeUserWithoutNodes(username, password); + } + + void Database::storeUserPasswordEncrypted(const Hash &nodeHash, const string &username, const string &password, const Signature::KeyPair &keyPair) { return databaseStorage.storeUserPasswordEncrypted(nodeHash, username, password, keyPair); } - vector Database::getStoredUserNodeDataDecrypted(const std::string &username, const std::string &password) + vector Database::getStoredUserNodeDataDecrypted(const string &username, const string &password) { return databaseStorage.getStoredUserNodeDataDecrypted(username, password); } -- cgit v1.2.3