AuThEnTiCaTiOn and clean up....

This commit is contained in:
2025-03-25 21:39:48 +00:00
parent b58a8bdb82
commit 11f031ff54
8 changed files with 127 additions and 56 deletions

View File

@@ -35,7 +35,7 @@ func NewTicket(db *sql.DB) http.HandlerFunc {
func SubmitTicket(db *sql.DB) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
if _, ok := GetCurrentUserID(r); !ok {
if _, ok := helpers.GetCurrentUserID(r); !ok {
http.Redirect(w, r, "/login", http.StatusSeeOther)
return
}