reset password page
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user