From 0bd3e5c88f73b1449ebffb1462cd4004c44bcf01 Mon Sep 17 00:00:00 2001 From: array-in-a-matrix Date: Thu, 15 Aug 2024 01:03:43 -0400 Subject: [PATCH] comment #32 --- src/types/users.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/users.nim b/src/types/users.nim index 94966cd..2bc7158 100644 --- a/src/types/users.nim +++ b/src/types/users.nim @@ -10,6 +10,7 @@ type User* = ref object of Model password*: string # sha3-512 hash token* {.unique.}: string fileCount*: int = 0 + # files*: seq[files.File] #! The compiler does not like this, issue #32 # checks if the provided token exists in the database proc validToken*(db: DbConn, user: var User, token: string): bool =