mirror of
https://github.com/glimpse-app/server.git
synced 2025-04-02 10:52:45 -04:00
comment #32
This commit is contained in:
parent
c0214a4e6d
commit
0bd3e5c88f
1 changed files with 1 additions and 0 deletions
|
@ -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 =
|
||||
|
|
Loading…
Add table
Reference in a new issue