diff --git a/management/server/user.go b/management/server/user.go index 9fdd3a6ee..dbe6c662a 100644 --- a/management/server/user.go +++ b/management/server/user.go @@ -74,7 +74,7 @@ type User struct { // Blocked indicates whether the user is blocked. Blocked users can't use the system. Blocked bool // LastLogin is the last time the user logged in to IdP - LastLogin time.Time + LastLogin time.Time `gorm:"default:null"` // CreatedAt records the time the user was created CreatedAt time.Time