mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 20:47:32 +00:00
fix: state on user projection (#3109)
* fix: state on user projection * fix: state on user projection * don't change user state on HumanEmailVerifiedEvent
This commit is contained in:
@@ -47,9 +47,6 @@ func (wm *HumanInitCodeWriteModel) Reduce() error {
|
||||
wm.IsEmailVerified = false
|
||||
case *user.HumanEmailVerifiedEvent:
|
||||
wm.IsEmailVerified = true
|
||||
if wm.UserState == domain.UserStateInitial {
|
||||
wm.UserState = domain.UserStateActive
|
||||
}
|
||||
case *user.HumanInitialCodeAddedEvent:
|
||||
wm.Code = e.Code
|
||||
wm.CodeCreationDate = e.CreationDate()
|
||||
|
Reference in New Issue
Block a user