Ensure auth fails if server is somehow built for unsupported platform

This commit is contained in:
Russ Magee 2024-03-30 00:48:46 -07:00
parent 77c9b8654f
commit dbaa8b5b62
1 changed files with 1 additions and 1 deletions

View File

@ -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 {