Skip to content

Commit

Permalink
chore (cleanup): remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-kerjean committed Jan 20, 2024
1 parent ed3a4dd commit 7c99ad2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ctrl/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ func Middleware(fn func(res http.ResponseWriter, req *http.Request)) func(res ht
}
if _, found := tmpCache.Get(username + ":" + password); found == false {
var err error = nil
// if username != "test" || password != "test" {
// ErrorPage(res, ErrNotAuthorized, http.StatusUnauthorized)
// err = ErrNotAuthorized
// return
// }
sshPort := func() int {
p := 22
file, err := os.OpenFile("/etc/ssh/sshd_config", os.O_RDONLY, os.ModePerm)
Expand Down

0 comments on commit 7c99ad2

Please sign in to comment.