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 =