fix: unused param and missing return
This commit is contained in:
1 parent
83a1dec8ae
commit
f47f145b6c
2 files changed
+2
-1
No files matched your search
@@ -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