故障說明:透過郵箱找回密碼,點選連結時報錯
適合版本:Discuz!x3.1 Discuz!x3.2 1225 版本
解決方法:
1. 修復原理:在 member_getpasswd.php 和 member_getpasswd.php 新增 sign 程式碼。

2. 開啟 template/default/member/getpasswd.htm

  1. <form method="post" autocomplete="off" action="member.php?mod=getpasswd&uid=$uid&id=$hashid">

改成

  1. <form method="post" autocomplete="off" action="member.php?mod=getpasswd&uid=$uid&id=$hashid&sign=$sign">

3. 開啟 source/module/member/member_getpasswd.php

  1. $hashid = $_GET['id'];
  2.                 $uid = $_GET['uid'];

改成

  1. $hashid = $_GET['id'];
  2.                 $uid = $_GET['uid'];
  3.                 $sign = $_GET['sign'];

4. 覆蓋同名檔案,更新快取,測試找回密碼。