fixed verification code
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user