Skip to content

Commit

Permalink
Merge pull request #44 from deflect-ca/feature/redesign-banjax-challe…
Browse files Browse the repository at this point in the history
…nger-page

Redesign banjax sha-inv page
  • Loading branch information
jeremy5189 authored Sep 25, 2023
2 parents e362653 + 70f1f57 commit cd68abd
Show file tree
Hide file tree
Showing 2 changed files with 229 additions and 43 deletions.
7 changes: 3 additions & 4 deletions banjax.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"os"
"os/signal"
Expand Down Expand Up @@ -42,7 +41,7 @@ func load_config(config *internal.Config, standaloneTestingPtr *bool, configFile
config.Hostname = hostname
log.Printf("INIT: hostname: %s", hostname)

configBytes, err := ioutil.ReadFile(*configFilenamePtr) // XXX allow different location
configBytes, err := os.ReadFile(*configFilenamePtr) // XXX allow different location
if err != nil {
panic(err)
}
Expand All @@ -61,7 +60,7 @@ func load_config(config *internal.Config, standaloneTestingPtr *bool, configFile

if config.ShaInvChallengeHTML != "" {
log.Printf("INIT: Reading SHA-inverse challenge HTML from %s", config.ShaInvChallengeHTML)
challengerBytes, err := ioutil.ReadFile(config.ShaInvChallengeHTML)
challengerBytes, err := os.ReadFile(config.ShaInvChallengeHTML)
if err != nil {
panic("!!! couldn't read sha-inverse-challenge.html")
}
Expand All @@ -77,7 +76,7 @@ func load_config(config *internal.Config, standaloneTestingPtr *bool, configFile

if config.PasswordProtectedPathHTML != "" {
log.Printf("INIT: Reading Password protected path HTML from %s", config.PasswordProtectedPathHTML)
passwordPageBytes, err := ioutil.ReadFile(config.PasswordProtectedPathHTML)
passwordPageBytes, err := os.ReadFile(config.PasswordProtectedPathHTML)
if err != nil {
panic("!!! couldn't read password-protected-path.html")
}
Expand Down
Loading

0 comments on commit cd68abd

Please sign in to comment.