init - add project files

This commit is contained in:
2025-03-06 23:54:11 -05:00
commit e724ff1120
1363 changed files with 897467 additions and 0 deletions

14
handlers/auth/logout.go Normal file
View File

@@ -0,0 +1,14 @@
package auth
import (
"net/http"
"maxwarden/config"
"maxwarden/middleware"
)
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)
}