Add HTPasswdValidator to basic authentication package

This commit is contained in:
Joel Speed
2020-07-18 11:01:49 +01:00
parent 895403cb9b
commit 7d8ee61254
7 changed files with 239 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
package basic
// Validator is a minimal interface for something that can validate a
// username and password combination.
type Validator interface {
Validate(user, password string) bool
}