1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-22 17:18:37 +00:00

Add command to reset user password

This commit is contained in:
Frédéric Guillot 2018-01-02 22:18:24 -08:00
parent 320d1b0167
commit 0394c1a2b2
4 changed files with 76 additions and 22 deletions

View file

@ -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)
}