fixed verification code

This commit is contained in:
Stephan D
2026-02-09 16:40:52 +01:00
parent f8a3bef2e6
commit eda6b75f74
78 changed files with 1118 additions and 487 deletions

View File

@@ -7,10 +7,10 @@ import (
"go.mongodb.org/mongo-driver/v2/bson"
)
func Account(sender string, accountRef bson.ObjectID, action nm.NotificationAction) messaging.Envelope {
return an.NewAccountImp(sender, accountRef, action)
func Account(sender string, accountRef bson.ObjectID, action nm.NotificationAction, verificationToken string) messaging.Envelope {
return an.NewAccountImp(sender, accountRef, action, verificationToken)
}
func AccountCreated(sender string, accountRef bson.ObjectID) messaging.Envelope {
return Account(sender, accountRef, nm.NACreated)
func AccountCreated(sender string, accountRef bson.ObjectID, verificationToken string) messaging.Envelope {
return Account(sender, accountRef, nm.NACreated, verificationToken)
}

View File

@@ -6,6 +6,6 @@ import (
"github.com/tech/sendico/pkg/model"
)
type AccountHandler = func(context.Context, *model.Account) error
type AccountHandler = func(context.Context, *model.Account, string) error
type PasswordResetHandler = func(context.Context, *model.Account, string) error