fix: add translations (#2126)

* fix: tranlsations

* fix: init code verification
This commit is contained in:
Fabi
2021-08-09 11:23:39 +02:00
committed by GitHub
parent 35fb2403d6
commit 270d1fcf65
3 changed files with 16 additions and 1 deletions

View File

@@ -47,7 +47,6 @@ func (wm *HumanInitCodeWriteModel) Reduce() error {
wm.IsEmailVerified = false
case *user.HumanEmailVerifiedEvent:
wm.IsEmailVerified = true
wm.Code = nil
if wm.UserState == domain.UserStateInitial {
wm.UserState = domain.UserStateActive
}