Commit bbea9df8 authored by Ricky Panzer's avatar Ricky Panzer Committed by Adhityaa Chandrasekar

commenter_login.go: include email in response

Fixes #271
parent 44dd4fa0
Pipeline #117782045 passed with stage
in 3 minutes and 24 seconds
......@@ -74,5 +74,11 @@ func commenterLoginHandler(w http.ResponseWriter, r *http.Request) {
return
}
bodyMarshal(w, response{"success": true, "commenterToken": commenterToken, "commenter": c})
e, err := emailGet(c.Email)
if err != nil {
bodyMarshal(w, response{"success": false, "message": err.Error()})
return
}
bodyMarshal(w, response{"success": true, "commenterToken": commenterToken, "commenter": c, "email": e})
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment