login-validator: remove unused index page

This commit is contained in:
nemunaire 2020-02-21 01:05:19 +01:00
commit c833b64d13
2 changed files with 1 additions and 82 deletions

View file

@ -75,7 +75,6 @@ func main() {
log.Println("Registering handlers...")
mux := http.NewServeMux()
mux.HandleFunc("/", Index)
mux.Handle("/login", lc)
mux.HandleFunc("/logout", logout)
http.HandleFunc("/", mux.ServeHTTP)
@ -94,9 +93,7 @@ func main() {
if lc.students, err = readStudentsList(studentsFile); err != nil {
log.Println("Error during students.csv reload:", err)
}
case syscall.SIGTERM:
break mloop;
case syscall.SIGINT:
case syscall.SIGTERM, syscall.SIGINT:
break mloop;
}
}