fix metagen deps
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
. "maragu.dev/gomponents/html"
|
||||
|
||||
"maxwarden/auth"
|
||||
"maxwarden/config"
|
||||
"maxwarden/constants"
|
||||
"maxwarden/middleware"
|
||||
|
||||
"log"
|
||||
@@ -46,7 +46,7 @@ func LoginHandler(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
defaultPath := config.IDENTITY_DEFAULT_PATH
|
||||
defaultPath := constants.IDENTITY_DEFAULT_PATH
|
||||
http.Redirect(w, r, defaultPath, http.StatusFound)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ package auth
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"maxwarden/config"
|
||||
"maxwarden/constants"
|
||||
"maxwarden/middleware"
|
||||
)
|
||||
|
||||
@@ -10,5 +10,5 @@ func LogoutHandler(w http.ResponseWriter, r *http.Request) {
|
||||
middleware.DeleteIdentityCookie(w, r)
|
||||
middleware.DeleteSessionCookie(w, r)
|
||||
|
||||
http.Redirect(w, r, config.IDENTITY_LOGIN_PATH, http.StatusFound)
|
||||
http.Redirect(w, r, constants.IDENTITY_LOGIN_PATH, http.StatusFound)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user