CSRF and various enhancements

This commit is contained in:
Cadence Ember
2020-05-10 03:20:13 +12:00
parent 270a662c75
commit 47cc40bc5a
10 changed files with 95 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
//- Needs saved, settings
//- Needs constants, settings, csrf, status, message
mixin fieldset(name)
fieldset
@@ -31,12 +31,14 @@ html
title Settings | Bibliogram
include includes/head
body.settings-page
if saved
.status-notice Saved.
if status && message
.status-notice(class=status)= message
script.
history.replaceState(null, "", "/settings")
main.settings
form(action="/settings" method="post" enctype="application/x-www-form-urlencoded")
input(type="hidden" name="csrf" value=csrf)
h1 Settings
+fieldset("Features")