remove hard code username and email

This commit is contained in:
Chris Cromer 2022-07-22 22:26:08 -04:00
parent ddc3ffe488
commit 067f63496a
Signed by: cromer
GPG Key ID: FA91071797BEEEC2

View File

@ -124,7 +124,7 @@ func Login(writer http.ResponseWriter, request *http.Request, params httprouter.
Token string `json:"token"`
}
tokenString, err := utils.GenerateJWT("chris@cromer.cl", "cromer")
tokenString, err := utils.GenerateJWT(user.Email, user.Username)
if err != nil {
utils.JSONErrorOutput(writer, http.StatusBadRequest, err.Error())
return