]> Cypherpunks.ru repositories - gocheese.git/blobdiff - passwd.go
Move everything related to passwords out
[gocheese.git] / passwd.go
index 6fb75f57a192702bcc793495a9c44de708d163af..dbdac8c178065bb20fb77495548da27554661d3b 100644 (file)
--- 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] != "" {