feat!: allow disable user (close #3241)

From this commit, the guest user will be disabled by default
This commit is contained in:
Andy Hsu
2023-02-04 11:44:17 +08:00
parent 7bf8071095
commit 3d0065bdcf
4 changed files with 16 additions and 0 deletions

View File

@ -48,6 +48,7 @@ func initUser() {
Role: model.GUEST,
BasePath: "/",
Permission: 0,
Disabled: true,
}
if err := db.CreateUser(guest); err != nil {
panic(err)