"encoding/hex"
"errors"
"fmt"
- "io/ioutil"
"net/http"
+ "os"
"strings"
)
w.WriteHeader(http.StatusUnauthorized)
return username, Unauthorized
}
- data, err := ioutil.ReadFile(cfg.Passwords)
+ data, err := os.ReadFile(cfg.Passwords)
if err != nil {
return username, err
}