remove hard code username and email
This commit is contained in:
parent
ddc3ffe488
commit
067f63496a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user