aboutsummaryrefslogtreecommitdiffhomepage
path: root/cli/cli.go
diff options
context:
space:
mode:
Diffstat (limited to 'cli/cli.go')
-rw-r--r--cli/cli.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/cli.go b/cli/cli.go
index 67131e6..d3abdcf 100644
--- a/cli/cli.go
+++ b/cli/cli.go
@@ -21,6 +21,7 @@ func Parse() {
flagMigrate := flag.Bool("migrate", false, "Migrate database schema")
flagFlushSessions := flag.Bool("flush-sessions", false, "Flush all sessions (disconnect users)")
flagCreateAdmin := flag.Bool("create-admin", false, "Create admin user")
+ flagResetPassword := flag.Bool("reset-password", false, "Reset user password")
flag.Parse()
cfg := config.NewConfig()
@@ -54,5 +55,10 @@ func Parse() {
return
}
+ if *flagResetPassword {
+ resetPassword(store)
+ return
+ }
+
daemon.Run(cfg, store)
}