mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
feat(cli): reset init user password
This commit is contained in:
parent
c56af25671
commit
d1d13b620f
5 changed files with 113 additions and 2 deletions
|
@ -5,6 +5,7 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/0xJacky/Nginx-UI/internal/user"
|
||||
"github.com/0xJacky/Nginx-UI/internal/version"
|
||||
"github.com/urfave/cli/v3"
|
||||
)
|
||||
|
@ -24,6 +25,11 @@ func NewAppCmd() *cli.Command {
|
|||
return nil
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "reset-password",
|
||||
Usage: "Reset the initial user password",
|
||||
Action: user.ResetInitUserPassword,
|
||||
},
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue