Commit 791f3b29 by 杨昕

sdf

parent 65de149d
......@@ -41,10 +41,7 @@ class LoginController extends Controller
$user = DB::connection('mongodb') //选择使用mongodb
->collection('users')->where('name',$request->name)->first();
if ($user){
if ($user['password'] == md5($request->password)){
$result = true;
}else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment