|
@@ -89,7 +89,7 @@ func (c *BaseAuthController) ServeJSON(encoding ...bool) {
|
|
|
|
|
|
requestBody = string(c.Ctx.Input.RequestBody)
|
|
|
}
|
|
|
- if baseRes.Ret != 200 && baseRes.IsSendEmail {
|
|
|
+ if baseRes.Ret != 200 && baseRes.IsSendEmail && c.User != nil {
|
|
|
|
|
|
body := "URI:" + c.Ctx.Input.URI() + "<br/> " + "Params" + requestBody + " <br/>" + "ErrMsg:" + baseRes.ErrMsg + ";<br/>Msg:" + baseRes.Msg + ";<br/> Body:" + string(body) + "<br/>" + c.User.RealName
|
|
|
|