require account approval flags

This commit is contained in:
tsmethurst
2021-03-25 20:07:28 +01:00
parent ad61584d7a
commit b3d5587415
4 changed files with 43 additions and 6 deletions

View File

@ -120,9 +120,15 @@ func main() {
&cli.BoolFlag{
Name: flagNames.AccountsOpenRegistration,
Usage: "Allow anyone to submit an account signup request. If false, server will be invite-only.",
Value: false,
Value: true,
EnvVars: []string{envNames.AccountsOpenRegistration},
},
&cli.BoolFlag{
Name: flagNames.AccountsRequireApproval,
Usage: "Do account signups require approval by an admin or moderator before user can log in? If false, new registrations will be automatically approved.",
Value: true,
EnvVars: []string{envNames.AccountsRequireApproval},
},
},
Commands: []*cli.Command{
{