Autologin via ?hash=xxx parameter in url

This commit is contained in:
Dario Guarascio 2021-10-09 11:47:20 +02:00
parent 2575cbfc11
commit 6bd01aaa45
8 changed files with 64 additions and 4 deletions

View file

@ -11,6 +11,7 @@ model account {
user_id Int @id @default(autoincrement()) @db.UnsignedInt
username String @unique @db.VarChar(255)
password String @db.VarChar(60)
hash String @unique @db.VarChar(512)
is_admin Boolean @default(false)
created_at DateTime? @default(now()) @db.Timestamp(0)
updated_at DateTime? @default(now()) @db.Timestamp(0)