aboutsummaryrefslogtreecommitdiff
path: root/db.h
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-06-20 21:14:26 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-06-20 21:14:41 +0200
commit2675fac7fe07783d3266b59f6e1c0e0a337a84db (patch)
tree4e73285bc4972f0aeccb772ae512b2901f10bee1 /db.h
parentf45959b53b8322a852554aa8dd7f8c9f4f99b5b4 (diff)
server: User password hashing (libsodium Argon2id(3,64MB))
Diffstat (limited to 'db.h')
-rw-r--r--db.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/db.h b/db.h
index a56bc70..c27b243 100644
--- a/db.h
+++ b/db.h
@@ -52,7 +52,7 @@ i64 db_create_user(const char *name,const char *pass);
bool db_set_username(i64 userid,const char *name);
bool db_set_pass(i64 userid,const char *pass);
char* db_get_username(i64 userid);
-char* db_get_pass(i64 userid);
+bool db_check_pass(i64 userid,const char *pass);
bool db_delete_user(i64 userid);
i64 db_find_user(const char *name); // -1 if not found
struct db_strings_list db_user_tokens(i64 userid);