Discuz!NT 2.5 beta下载测试
类库文档在线查看
Comsenz 招聘信息
首届Discuz!NT 模板大赛圆满结束
著名音乐网站SoGua网、分贝网
采用Discuz!NT搭建社区
FIFA Online2官网论坛使用Discuz!NT
游戏城寨论坛使用Discuz!NT搭建
要灌, 就灌有技术含量的水
一起交流学习ASP.net吧!
17套Discuz!NT界面模板提供下载
Discuz!NT后台截图先睹为快
Discuz!NT文档中心
用户整合说明文档
Discuz!NT亮相微软Tech-Ed 2007
Discuz!NT情景搞笑短片抢先看
1/1页1 跳转到查看:945
发新话题 回复该主题

密码找回提示:用户名不存在,你无法重设密码 的解决方法

密码找回提示:用户名不存在,你无法重设密码 的解决方法

在NT2.0中,使用论坛提供的找回密码功能,通过邮箱重设密码连接中的连接地址进入重设密码的页面,输入新密码后提示:“用户名不存在,你无法重设密码 的解决方法”。经过努力总算发现了问题所在,现提供给大家

主要原因为 不完整的表单使参数传递错误
修改模板文件 templates\setnewpassword.htm 文件如下

<%template _header%>
<!--TheCurrent start-->
<div id="foruminfo">
<div class="userinfo">
  <h2><a href="{config.forumurl}">{config.forumtitle}</a><strong>密码重置</strong></h2>
</div>
</div>
<!--TheCurrent end-->
<%if {ispost}%>
<%if page_err==0%>
  <%template _msgbox%>
<%else%>
  <%template _errmsgbox%>
<%/if%>
<%else%>
<%if page_err==0%>
<form id="form1" name="form1" method="post" action="#">
<div class="ntforumbox">
<div class="titlebar">
  <h3>密码重置</h3>
</div>
<table cellpadding="0" cellspacing="0" border="0">
  <tbody>
  <tr class="list">
    <th class="formlabel">新密码:</th>
    <td class="formbody"><input name="newpassword" type="password" id="newpassword" size="25" class="colorblue"    />
      <input name="uid" type="hidden" id="uid" value="{request[uid]}" />
      <input name="authstr" type="hidden" id="authstr" value="{request[id]}" />
    </td>
  </tr>
  </tbody>
  <tbody>
  <tr class="list">
    <th class="formlabel">确认密码:</th>
    <td class="formbody"><input name="confirmpassword" type="password" id="confirmpassword" size="25" class="colorblue"  >
    </td>
  </tr>
  </tbody>
<%if {isseccode}%>
  <tbody>
  <tr class="list">
    <th class="formlabel">验证码:</th>
    <td class="formbody"><%template _vcode%></td>
  </tr>
  </tbody>
<%/if%> 
  <tbody>
  <tr class="list">
    <th class="formlabel"> </th>
    <td class="formbody">
    <input name="login" type="submit" id="login" value="确定"  class="sbutton" />
         
    <input name="cancel" type="button" id="cancel" value="取消"  class="sbutton" />
    </td>
  </tr>
  </tbody>
</table>
</div>   
</form>
</div>
  <%template _copyright%>
<%else%>
  <%template _errmsgbox%>
</div>
<%/if%>
<%/if%>
<%template _footer%>

TOP

 

回复:密码找回提示:用户名不存在,你无法重设密码 的解决方法

感谢您的反馈
看到的去帮我点那个google广告啊www.cnblogs.com/zjneter

TOP

 

回复:密码找回提示:用户名不存在,你无法重设密码 的解决方法

我按这个改了,怎么还是不行啊?

TOP

 
1/1页1 跳转到
发表新主题 回复该主题