mirror of
https://github.com/luscis/openlan.git
synced 2025-10-19 23:34:34 +08:00
fea: socket: support to negotiate key
This commit is contained in:
@@ -139,7 +139,7 @@ func (u User) Commands(app *api.App) {
|
||||
Usage: "Add a new user",
|
||||
Flags: []cli.Flag{
|
||||
&cli.StringFlag{Name: "name"},
|
||||
&cli.StringFlag{Name: "password", Value: libol.GenRandom(24)},
|
||||
&cli.StringFlag{Name: "password", Value: libol.GenString(24)},
|
||||
&cli.StringFlag{Name: "role", Value: "guest"},
|
||||
&cli.StringFlag{Name: "lease", Value: lease.Format(libol.LeaseTime)},
|
||||
},
|
||||
|
Reference in New Issue
Block a user