From 65b037a681d26fb3061e84767da6e65db01a2902 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 4 Aug 2016 21:53:20 +1000 Subject: [PATCH] Last fix for password hashing --- users.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users.c b/users.c index 1483fe4..3d657e8 100644 --- a/users.c +++ b/users.c @@ -225,7 +225,7 @@ struct user_record *check_user_pass(int socket, char *loginname, char *password) sqlite3 *db; sqlite3_stmt *res; int rc; - char *sql = "SELECT loginname, password, salt, firstname," + char *sql = "SELECT Id, loginname, password, salt, firstname," "lastname, email, location, sec_level, last_on, time_left, cur_mail_conf, cur_mail_area, cur_file_dir, cur_file_sub, times_on FROM users WHERE loginname LIKE ?"; char *pass_hash;