public function f(){
$this->display(findd);}
public function findd(){
$uname=$_REQUEST['username'];
$user=D('User');
$res=$user->where("username='$uname'")->find();
if($res)
{
echo "用户名:".$res['username']."<br/>";
echo "您丢失的密码为:".$res['password'];
redirect('/wu_liuliu/index.php/Home/Denglu/show',1,"已找到密码,正在跳往登陆页面...");
}
else
{
$this->error('登录失败!若果您忘记密码,可以通过用户名','__URL__/findd');
}
$this->display(findd);}
public function findd(){
$uname=$_REQUEST['username'];
$user=D('User');
$res=$user->where("username='$uname'")->find();
if($res)
{
echo "用户名:".$res['username']."<br/>";
echo "您丢失的密码为:".$res['password'];
redirect('/wu_liuliu/index.php/Home/Denglu/show',1,"已找到密码,正在跳往登陆页面...");
}
else
{
$this->error('登录失败!若果您忘记密码,可以通过用户名','__URL__/findd');
}
}