fix
This commit is contained in:
@@ -50,9 +50,11 @@ func (l *UserResetPasswordHtmlLogic) UserResetPasswordHtml(req *types.RequestUse
|
||||
func (l *UserResetPasswordHtmlLogic) AfterLogic(w http.ResponseWriter, r *http.Request, resp *basic.Response) {
|
||||
|
||||
err := tpls.ExecuteTemplate(w, "reset_confirm.tpl", map[string]string{
|
||||
"HomePage": "http://www.fusen.3718.cn",
|
||||
"ResetToken": l.ResetToken,
|
||||
"ResetPasswordLink": l.svcCtx.Config.MainAddress + "/api/auth/reset/password",
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
httpx.OkJsonCtx(l.ctx, w, resp.SetStatusWithMessage(basic.CodeTemplateErr, err.Error()))
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user