feat: add public flag instead of system setting to enable signup (#3589)

This commit is contained in:
Johnny
2024-06-19 22:03:12 +08:00
committed by GitHub
parent 387bf48fc8
commit 736637a362
36 changed files with 621 additions and 951 deletions

View File

@ -30,6 +30,8 @@ type Profile struct {
Driver string `json:"-"`
// Version is the current version of server
Version string `json:"version"`
// Pubic is the flag whether the instance is public for others.
Public bool `json:"public"`
}
func (p *Profile) IsDev() bool {