mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +02:00
fix: unused param and missing return
This commit is contained in:
@@ -133,6 +133,7 @@ func login(w http.ResponseWriter, r *http.Request) {
|
|||||||
dbUser, err := GetUserFromCredentials(credentials)
|
dbUser, err := GetUserFromCredentials(credentials)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, LogsErrorMessage, http.StatusForbidden)
|
http.Error(w, LogsErrorMessage, http.StatusForbidden)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
_ = SetJwtCookie(&w, dbUser.ID)
|
_ = SetJwtCookie(&w, dbUser.ID)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetPageIntegration(w http.ResponseWriter, r *http.Request) {
|
func GetPageIntegration(w http.ResponseWriter, _ *http.Request) {
|
||||||
navbarTmpl, _ := api.Container.GetPageUseCase.GetPage("componentNavbar", nil)
|
navbarTmpl, _ := api.Container.GetPageUseCase.GetPage("componentNavbar", nil)
|
||||||
templ, _ := api.Container.GetPageUseCase.GetPage("integration", map[string]any{
|
templ, _ := api.Container.GetPageUseCase.GetPage("integration", map[string]any{
|
||||||
"Navbar": template.HTML(navbarTmpl),
|
"Navbar": template.HTML(navbarTmpl),
|
||||||
|
|||||||
Reference in New Issue
Block a user