重置密码功能 点击发送邮件 无响应

lecms 2023-4-10 306

1、找到主题/user/forget_password.htm 和 reset_password.htm 两个文件

<input type="hidden" name="FORM_HASH" value="{$C[FORM_HASH]}" />
改成
<input type="hidden" name="FORM_HASH" value="{$form_hash}" />

2、找到 lecms/control/user_control.class.php 大概在287行

$reset_url = $this->_cfg['weburl'].'user/index.php?user-resetpwd-auth-'.$userauth.'.html';
改成
$reset_url = $this->_cfg['weburl'].'index.php?user-resetpwd-auth-'.$userauth.$_ENV['_config']['url_suffix'];

 

3、后台-清除文件缓存

最新回复 (0)
返回
发新帖