forgot password: email and paper key, reset password
This commit is contained in:
parent
6ddbe013bc
commit
751a21485f
21 changed files with 688 additions and 4 deletions
|
|
@ -0,0 +1,15 @@
|
|||
select id,
|
||||
created_at as "created_at: DateTime<Utc>",
|
||||
updated_at as "updated_at: DateTime<Utc>",
|
||||
is_admin as "is_admin: bool",
|
||||
username,
|
||||
name,
|
||||
email,
|
||||
password,
|
||||
password_recover,
|
||||
paper_key,
|
||||
is_archived as "is_archived: bool",
|
||||
timezone
|
||||
from users
|
||||
|
||||
where password_recover is (?)
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
update users
|
||||
|
||||
set password_recover = ?
|
||||
|
||||
where id is ?
|
||||
Loading…
Add table
Add a link
Reference in a new issue