From e650f0455385258827f9d0349d54af9cb81ec7be Mon Sep 17 00:00:00 2001 From: Martin Zhou <1009465756@qq.com> Date: Mon, 25 Jan 2016 16:04:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DLoginController.class.php?= =?UTF-8?q?=E4=B8=AD=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 个人中心登录页面无法显示验证码 issued by 王先生 --- Application/User/Controller/LoginController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/User/Controller/LoginController.class.php b/Application/User/Controller/LoginController.class.php index 6f411e1..20ebeb4 100644 --- a/Application/User/Controller/LoginController.class.php +++ b/Application/User/Controller/LoginController.class.php @@ -59,6 +59,7 @@ class LoginController extends Controller { //验证码 public function verify(){ + ob_clean(); $Verify = new \Think\Verify(); $Verify->codeSet = '123456789abcdefg'; $Verify->fontSize = 16; @@ -77,4 +78,4 @@ class LoginController extends Controller { session('username',null); redirect(U('Login/index')); } -} \ No newline at end of file +}