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:
parent
320d1b0167
commit
0394c1a2b2
4 changed files with 76 additions and 22 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue