MCPcopy
hub / github.com/writefreely/writefreely / resetPassAction

Function resetPassAction

cmd/writefreely/user.go:87–96  ·  view source on GitHub ↗
(c *cli.Context)

Source from the content-addressed store, hash-verified

85}
86
87func resetPassAction(c *cli.Context) error {
88 username := ""
89 if c.NArg() > 0 {
90 username = c.Args().Get(0)
91 } else {
92 return fmt.Errorf("No user passed. Example: writefreely user reset-pass [USER]")
93 }
94 app := writefreely.NewApp(c.String("c"))
95 return writefreely.ResetPassword(app, username)
96}

Callers

nothing calls this directly

Calls 3

NewAppFunction · 0.92
ResetPasswordFunction · 0.92
StringMethod · 0.80

Tested by

no test coverage detected