ProcessWire验证用户名密码的方法

if($user->pass->matches($input->post->pass)){
    echo "密码正确!";
}else{
    echo "密码错误!";
}

Post Comment