Skip to content

Commit

Permalink
Update showvcode.php
Browse files Browse the repository at this point in the history
update 服务端验证码不显示的问题
  • Loading branch information
zhuifengshaonianhanlu committed Oct 30, 2018
1 parent b34c1d3 commit 686c911
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions inc/showvcode.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php
session_start();
include_once 'function.php';
$_SESSION['vcode']=vcode(100,40,30,4);
//$_SESSION['vcode']=vcode(100,40,30,4);
$_SESSION['vcode']=vcodex();
//验证码绕过 on server 这里其实还是有一个问题,就是服务端将验证码字符串以明文COOKIE的方式给了前端,那验证码还有什么鸟意义。。。
setcookie('bf[vcode]',$_SESSION['vcode']);
?>
?>

0 comments on commit 686c911

Please sign in to comment.