Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
2d8d7efbcb
commit
b316c6ef67
4 changed files with 77 additions and 3 deletions
|
@ -34,6 +34,7 @@ type PageData struct {
|
|||
AceDirectory string
|
||||
BootstrapDirectory string
|
||||
DisableEditor bool
|
||||
Password string // Not stored in the database
|
||||
}
|
||||
|
||||
func WebError(w http.ResponseWriter, pageData PageData, templates *template.Template, templateName string, logger *slog.Logger, topLevelErr error, err error) {
|
||||
|
@ -439,6 +440,7 @@ func (h *GetProtectedWebNoteHandler) ServeHTTP(w http.ResponseWriter, r *http.Re
|
|||
}
|
||||
}
|
||||
|
||||
h.PageData.Password = password
|
||||
h.PageData.Note = note
|
||||
|
||||
logger.Debug("rendering page")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue