fix: user state (#693)

This commit is contained in:
Livio Amstutz 2020-09-04 09:55:26 +02:00 committed by GitHub
parent 37174cecd4
commit c553c70887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -296,7 +296,7 @@ func (u *UserView) setPasswordData(event *models.Event) error {
}
func (u *UserView) ComputeObject() {
if u.MachineView != nil {
if !u.MachineView.IsZero() {
if u.State == int32(model.UserStateUnspecified) {
u.State = int32(model.UserStateActive)
}