diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2020-06-20 21:14:26 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2020-06-20 21:14:41 +0200 |
commit | 2675fac7fe07783d3266b59f6e1c0e0a337a84db (patch) | |
tree | 4e73285bc4972f0aeccb772ae512b2901f10bee1 /db.h | |
parent | f45959b53b8322a852554aa8dd7f8c9f4f99b5b4 (diff) |
server: User password hashing (libsodium Argon2id(3,64MB))
Diffstat (limited to 'db.h')
-rw-r--r-- | db.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |