registering works

This commit is contained in:
2023-03-29 09:13:09 +11:00
parent 7495a341cd
commit f561f466a2
5 changed files with 10 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
package controllers
import (
"fmt"
"html"
"net/http"
"strings"
@@ -34,6 +35,8 @@ func Register(c *gin.Context) {
if err != nil {
c.JSON(http.StatusBadRequest, gin.H{"Error hashing password": err.Error()})
return
} else {
fmt.Printf("Hashed password value is '%s'\n", string(hashedPassword))
}
u.Password = string(hashedPassword)