22 lines
452 B
Go
22 lines
452 B
Go
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
|
|
}
|
|
}
|