clean: refactor auth & login page auth

This commit is contained in:
Florian Sylvain
2024-05-13 11:11:58 +02:00
parent dca17a744d
commit 00a4e464ff
4 changed files with 37 additions and 35 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ func GetRegisterPageHandler(registerPage *RegisterPage) http.HandlerFunc {
func PostRegisterPage(w http.ResponseWriter, r *http.Request) {
_ = r.ParseForm()
credentials, err := json.Marshal(&UserRegister{
credentials, err := json.Marshal(&RegisterCredentials{
Username: r.FormValue("username"),
Password: r.FormValue("password"),
Email: r.FormValue("email"),