diff --git a/auth/helper.go b/auth/helper.go index 5879f86..cf471c3 100644 --- a/auth/helper.go +++ b/auth/helper.go @@ -63,6 +63,7 @@ func (srv Service) SetDefaultAdmin(username, password string) error { pwd, _ := bcrypt.GenerateFromPassword([]byte(password), 14) usr.Username = username usr.Password = string(pwd) + usr.Activated = true err = DB.Transaction(func(tx *gorm.DB) error { err := tx.Create(usr).Error if err != nil {