diff --git a/auth.go b/auth.go index ebca33e..cc3b042 100755 --- a/auth.go +++ b/auth.go @@ -53,7 +53,7 @@ func VerifyPass(ctx *AuthCtx, user, password string) (bool, error) { } else if runtime.GOOS == "freebsd" { pwFileName = "/etc/master.passwd" } else { - pwFileName = "unsupported" + return false, errors.New("Unsupported platform") } pwFileData, e := ctx.reader(pwFileName) if e != nil {