feat(mail): send service identity mail through a leased worker
This commit is contained in:
1 parent
204c6bae62
commit
d21fd49a42
58 files changed
+7577
-164
No files matched your search
@@ -48,7 +48,7 @@ func TestNewEmailTokenRejectsInvalidInput(t *testing.T) {
|
||||
}
|
||||
tests := map[string]func(*NewEmailTokenInput){
|
||||
"nil user": func(input *NewEmailTokenInput) { input.UserID = uuid.Nil },
|
||||
"unknown purpose": func(input *NewEmailTokenInput) { input.Purpose = "password_reset" },
|
||||
"unknown purpose": func(input *NewEmailTokenInput) { input.Purpose = "something_else" },
|
||||
"zero hash": func(input *NewEmailTokenInput) { input.TokenHash = SecretTokenHash{} },
|
||||
"zero version": func(input *NewEmailTokenInput) { input.RegistrationVersion = 0 },
|
||||
"zero issue time": func(input *NewEmailTokenInput) { input.IssuedAt = time.Time{} },
|
||||
|
||||
Reference in new issue
Block a user