Added sessions to the backend, a basic form of it at least
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user