diff --git a/controllers/getController.go b/controllers/getController.go index 6a80e15..4e3caef 100644 --- a/controllers/getController.go +++ b/controllers/getController.go @@ -27,17 +27,17 @@ func (getController *GetController) ShowHome(w http.ResponseWriter, _ *http.Requ func (getController *GetController) ShowRegister(w http.ResponseWriter, r *http.Request) { type dataStruct struct { - csrfToken string + CsrfToken string } // Create csrf token - csrfToken, err := security.GenerateCsrfToken(w, r) + CsrfToken, err := security.GenerateCsrfToken(w, r) if err != nil { return } data := dataStruct{ - csrfToken: csrfToken, + CsrfToken: CsrfToken, } templating.RenderTemplate(getController.App, w, "templates/pages/register.html", data) @@ -45,17 +45,17 @@ func (getController *GetController) ShowRegister(w http.ResponseWriter, r *http. func (getController *GetController) ShowLogin(w http.ResponseWriter, r *http.Request) { type dataStruct struct { - csrfToken string + CsrfToken string } // Create csrf token - csrfToken, err := security.GenerateCsrfToken(w, r) + CsrfToken, err := security.GenerateCsrfToken(w, r) if err != nil { return } data := dataStruct{ - csrfToken: csrfToken, + CsrfToken: CsrfToken, } templating.RenderTemplate(getController.App, w, "templates/pages/login.html", data) diff --git a/templates/pages/login.html b/templates/pages/login.html index 7281027..68514ca 100644 --- a/templates/pages/login.html +++ b/templates/pages/login.html @@ -2,7 +2,7 @@ {{ define "content" }}
- +


diff --git a/templates/pages/register.html b/templates/pages/register.html index fae5b2c..6bd6e51 100644 --- a/templates/pages/register.html +++ b/templates/pages/register.html @@ -2,7 +2,7 @@ {{ define "content" }} - +