fix: password hash update and add missing i18n (#6285)

This commit is contained in:
Livio Spring
2023-07-28 09:09:15 +02:00
committed by GitHub
parent 31ec1d83b9
commit 789dcd8615
27 changed files with 63 additions and 5 deletions

View File

@@ -21,6 +21,7 @@ const (
HumanPasswordCodeSentType = passwordEventPrefix + "code.sent"
HumanPasswordCheckSucceededType = passwordEventPrefix + "check.succeeded"
HumanPasswordCheckFailedType = passwordEventPrefix + "check.failed"
HumanPasswordHashUpdatedType = passwordEventPrefix + "hash.updated"
)
type HumanPasswordChangedEvent struct {
@@ -298,7 +299,7 @@ func NewHumanPasswordHashUpdatedEvent(
BaseEvent: *eventstore.NewBaseEventForPush(
ctx,
aggregate,
HumanPasswordCheckFailedType,
HumanPasswordHashUpdatedType,
),
EncodedHash: encoded,
}