故障說明:透過郵箱找回密碼,點選連結時報錯
適合版本:Discuz!x3.1 Discuz!x3.2 1225 版本
解決方法:
1. 修復原理:在 member_getpasswd.php 和 member_getpasswd.php 新增 sign 程式碼。
2. 開啟 template/default/member/getpasswd.htm
- <form method="post" autocomplete="off" action="member.php?mod=getpasswd&uid=$uid&id=$hashid">
改成
- <form method="post" autocomplete="off" action="member.php?mod=getpasswd&uid=$uid&id=$hashid&sign=$sign">
3. 開啟 source/module/member/member_getpasswd.php
- $hashid = $_GET['id'];
- $uid = $_GET['uid'];
改成
- $hashid = $_GET['id'];
- $uid = $_GET['uid'];
- $sign = $_GET['sign'];
4. 覆蓋同名檔案,更新快取,測試找回密碼。