Auth CLI, continued

This commit is contained in:
Philipp Heckel
2022-01-23 23:02:39 -05:00
parent 03a4e3e8e9
commit 393f95aeac
6 changed files with 183 additions and 43 deletions

View File

@@ -20,11 +20,11 @@ func execUserDeny(c *cli.Context) error {
username := c.Args().Get(0)
topic := c.Args().Get(1)
if username == "" {
return errors.New("username expected, type 'ntfy allow --help' for help")
return errors.New("username expected, type 'ntfy deny --help' for help")
} else if topic == "" {
return errors.New("topic expected, type 'ntfy allow --help' for help")
return errors.New("topic expected, type 'ntfy deny --help' for help")
}
if username == "everyone" {
if username == userEveryone {
username = ""
}
manager, err := createAuthManager(c)