Why does it keep saying that the user cannot be found? It is clearly in the database.
轻微强迫症
轻微强迫症 2018-05-26 16:14:31
0
1
2333


$result = $this -> validate($data,$rule,$msg);

//If the verification passes Execution

if($result === true){

//Construct query conditions

$map = [

'name' => $data['name'],

'password' =>md5($data['password']),

];


//Query user information

$user = UserModel::get($map);

if($user == null){

$result = 'The user was not found';

}else {

$status = 1;

$result = 'Verification passed, click [Confirm] to enter';

//Use session to set user login information

Session::set('user_id',$user->id); //User ID

session::set( 'user_info',$user->getData()); //Get all user information


//Update user login times: increase by 1

                                                                            $user -> setInc('login_count'); 'message'=>$result,'data'=>$data];

}

##
轻微强迫症
轻微强迫症

reply all(1)
Ж墨竹疏影Ж

I also encountered the same problem. When logging in with admin, it said that the user does not exist, but it is clearly in the database; logging in with peter was no problem. I don't know what's going on either

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template