mirror of
https://github.com/atuinsh/atuin.git
synced 2025-08-09 07:15:12 +02:00
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:
@ -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
|
||||
);
|
Reference in New Issue
Block a user