mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 04:47:33 +00:00
fix: user state (#693)
This commit is contained in:
@@ -296,7 +296,7 @@ func (u *UserView) setPasswordData(event *models.Event) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (u *UserView) ComputeObject() {
|
func (u *UserView) ComputeObject() {
|
||||||
if u.MachineView != nil {
|
if !u.MachineView.IsZero() {
|
||||||
if u.State == int32(model.UserStateUnspecified) {
|
if u.State == int32(model.UserStateUnspecified) {
|
||||||
u.State = int32(model.UserStateActive)
|
u.State = int32(model.UserStateActive)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user