mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-08 19:48:35 +00:00
implement password reset
This commit is contained in:
parent
2231c54f21
commit
64d2957853
5 changed files with 87 additions and 13 deletions
|
@ -149,3 +149,10 @@ func (r *UserRepository) PasswordResetGet(ctx context.Context, token []byte) (*e
|
|||
WithUser().
|
||||
Only(ctx)
|
||||
}
|
||||
|
||||
func (r *UserRepository) PasswordResetDelete(ctx context.Context, token []byte) error {
|
||||
_, err := r.db.ActionToken.Delete().
|
||||
Where(actiontoken.Token(token)).
|
||||
Exec(ctx)
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue