[MM-33395] Invalidate email tokens (#17069)

* [MM-33395] Invalidate existing verify email tokens when creating a new one

* Update store layers

* Addressing review comments

* Fix linter

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Miguel de la Cruz
2021-07-09 14:31:34 +02:00
коммит произвёл GitHub
родитель b5266c37dc
Коммит 5b99df7bcd
10 изменённых файлов: 179 добавлений и 1 удалений

Просмотреть файл

@@ -595,6 +595,7 @@ type TokenStore interface {
Delete(token string) error
GetByToken(token string) (*model.Token, error)
Cleanup()
GetAllTokensByType(tokenType string) ([]*model.Token, error)
RemoveAllTokensByType(tokenType string) error
}