Added sessions to the backend, a basic form of it at least

This commit is contained in:
2024-05-20 17:35:16 +01:00
parent 2179040833
commit 8a625b5fa8
3 changed files with 11 additions and 8 deletions
+2 -1
View File
@@ -6,7 +6,8 @@ import (
)
func EditorPage(w http.ResponseWriter, r *http.Request) {
if !isAuthenticated(r) {
authd, _ := isAuthenticated(r)
if !authd {
views.LoginPage(w, r)
return
}