login-validator: refactor auth methods

This commit is contained in:
nemunaire 2020-02-21 00:18:56 +01:00
commit 8d4ab002d8
5 changed files with 126 additions and 91 deletions

View file

@ -0,0 +1,11 @@
package main
type AuthMethod interface {
checkAuth(username, password string) (bool, error)
}
type NoAuth struct {}
func (NoAuth) checkAuth(username, password string) (res bool, err error) {
return true, nil
}