diff options
author | John Ankarström <john@ankarstrom.se> | 2021-09-20 22:07:51 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-09-20 22:07:51 +0200 |
commit | 3ea978c60ee03dba2cb883ba18d3b334cfbf6cd0 (patch) | |
tree | 6a3de0d664f261f7ae1ab57d35e7d2f37acc673b /db.c | |
parent | fd9e2f7245212f2b652652f4669648260e59f9e9 (diff) | |
download | cforum-3ea978c60ee03dba2cb883ba18d3b334cfbf6cd0.tar.gz |
Implement login
Diffstat (limited to 'db.c')
-rw-r--r-- | db.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -271,7 +271,8 @@ nextuser(sqlite3_stmt *stmt) user->name = strdupn(sqlite3_column_text(stmt, 1)); user->full = strdupn(sqlite3_column_text(stmt, 2)); user->hash = strdupn(sqlite3_column_text(stmt, 3)); - user->created = sqlite3_column_int(stmt, 4); + user->salt = strdupn(sqlite3_column_text(stmt, 4)); + user->created = sqlite3_column_int(stmt, 5); return user; } |