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

(cherry picked from commit 789dcd8615)
This commit is contained in:
Livio Spring
2023-07-28 09:09:15 +02:00
parent 880896af75
commit 9d2ae1e9fa
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,
}