Adjust remote auth disabled check syntax

This commit is contained in:
Jonathon Reinhart
2021-03-31 17:18:13 -04:00
parent 22ef0c2ee6
commit 3debf4127d

View File

@@ -91,8 +91,7 @@ func setupRemoteAuth() {
logger := log.WithField("remote_auth", *remoteAuthStr)
// Remote auth disabled?
switch *remoteAuthStr {
case "", "none":
if *remoteAuthStr == "" || *remoteAuthStr == "none" {
if *remoteUser != "" {
logger.Fatal("remote_user given but not used")
}