mirror of https://gogs.blitter.com/RLabs/xs
Ensure auth fails if server is somehow built for unsupported platform
This commit is contained in:
parent
77c9b8654f
commit
dbaa8b5b62
2
auth.go
2
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 {
|
||||
|
|
Loading…
Reference in New Issue