package main import ( "html/template" "net/http" "astraltech.xyz/accountmanager/src/logging" ) func resetPasswordHandler(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf-8") token := r.URL.Query().Get("token") logging.Infof("Token: %s\n", token) tmpl := template.Must(template.ParseFiles("src/pages/reset_password.html")) if r.Method == http.MethodGet { tmpl.Execute(w, nil) return } }