fix: login for initial users (#4506)

This commit is contained in:
Livio Spring
2022-10-07 13:56:50 +02:00
committed by GitHub
parent c9e2e6bc33
commit d775020a32
2 changed files with 21 additions and 4 deletions

View File

@@ -27,6 +27,10 @@ func (s UserState) Exists() bool {
return s != UserStateUnspecified && s != UserStateDeleted
}
func (s UserState) NotDisabled() bool {
return s == UserStateActive || s == UserStateInitial
}
type UserType int32
const (