first working version

This commit is contained in:
ston1th 2022-07-10 15:51:31 +02:00
commit c9dfecc519
21 changed files with 296 additions and 178 deletions

View file

@ -43,6 +43,7 @@ func (s *Server) loadTemplates() (err error) {
// pages
s.ts.Parse(tfs, "notFoundHandler", "index.html", "menu.html", "notFound.html")
s.ts.Parse(tfs, "forbiddenHandler", "index.html", "menu.html", "forbidden.html")
s.ts.Parse(tfs, "loginHandler", "index.html", "menu.html", "login.html")
s.ts.Parse(tfs, "loginTotpHandler", "index.html", "menu.html", "loginTotp.html")
s.ts.Parse(tfs, "consentHandler", "index.html", "menu.html", "consent.html")
@ -51,6 +52,7 @@ func (s *Server) loadTemplates() (err error) {
s.ts.Parse(tfs, "userNewHandler", "index.html", "menu.html", "userNew.html")
s.ts.Parse(tfs, "userEditHandler", "index.html", "menu.html", "userEdit.html")
s.ts.Parse(tfs, "userDelHandler", "index.html", "menu.html", "userDel.html")
s.ts.Parse(tfs, "userSessionsHandler", "index.html", "menu.html", "userSessions.html")
// totp
s.ts.Parse(tfs, "userTotpHandler", "index.html", "menu.html", "userTotp.html")