feat: add user account verification (#2190)

* add verified column to users table

* add database functions to check if verified, or to verify

* getting there

* verification check

* use base64 urlsafe no pad

* add verification client

* clippy

* correct docs

* fix integration tests
This commit is contained in:
Ellie Huxtable
2024-06-24 14:54:54 +01:00
committed by GitHub
parent 8956142cc5
commit 67d64ec4b3
17 changed files with 401 additions and 16 deletions

View File

@ -0,0 +1,8 @@
alter table users add verified_at timestamp with time zone default null;
create table user_verification_token(
id bigserial primary key,
user_id bigint unique references users(id),
token text,
valid_until timestamp with time zone
);