X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=passwd.go;h=dbdac8c178065bb20fb77495548da27554661d3b;hb=ad6b9b1dca039678e7c48fe07e864b614e01158f;hp=6fb75f57a192702bcc793495a9c44de708d163af;hpb=bcfc26f87e27a5d749eeed3194681e8018df4c5b;p=gocheese.git diff --git a/passwd.go b/passwd.go index 6fb75f5..dbdac8c 100644 --- a/passwd.go +++ b/passwd.go @@ -25,6 +25,12 @@ import ( "strings" ) +var passwords map[string]Auther = make(map[string]Auther) + +type Auther interface { + Auth(password string) bool +} + func strToAuther(verifier string) (string, Auther, error) { st := strings.SplitN(verifier, "$", 3) if len(st) != 3 || st[0] != "" {