Showing
1 changed file
with
1 additions
and
0 deletions
| @@ -35,6 +35,7 @@ class Admin extends Model | @@ -35,6 +35,7 @@ class Admin extends Model | ||
| 35 | } | 35 | } |
| 36 | } | 36 | } |
| 37 | $user=Db::name('admin')->where('username',$data['username'])->find(); | 37 | $user=Db::name('admin')->where('username',$data['username'])->find(); |
| 38 | + print_r($user);die; | ||
| 38 | if($user) { | 39 | if($user) { |
| 39 | if ($user['is_open']==1 && $user['pwd'] == md5($data['password'])){ | 40 | if ($user['is_open']==1 && $user['pwd'] == md5($data['password'])){ |
| 40 | session('username', $user['username']); | 41 | session('username', $user['username']); |
-
Please register or login to post a comment