1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-05-23 15:27:38 +02:00

Allow 'ntfy access --reset'

This commit is contained in:
Philipp Heckel 2022-02-01 12:23:11 -05:00
parent 44bc13eb2c
commit e56eb0c178
2 changed files with 5 additions and 3 deletions

View file

@ -15,11 +15,11 @@ type testAuther struct {
Allow bool
}
func (t testAuther) Authenticate(username, password string) (*auth.User, error) {
func (t testAuther) Authenticate(_, _ string) (*auth.User, error) {
return nil, errors.New("not used")
}
func (t testAuther) Authorize(user *auth.User, topic string, perm auth.Permission) error {
func (t testAuther) Authorize(_ *auth.User, _ string, _ auth.Permission) error {
if t.Allow {
return nil
}