From 616101038a0f61252502f127ebf2f66b74f798d5 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Thu, 27 Jan 2022 18:53:39 +0800 Subject: [PATCH] update --- auth/helper.go | 1 + 1 file changed, 1 insertion(+) 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 {