84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
This is use.php
namespace app\index\controller;
use app\index\controller\Base;
use think\Request;
use app\index\model\ User as UserModel;
class user extends Base
{
//Login interface
public function login()
{
Return $this-> view -> fetch();
}
//Verify login $this ->validate($data,$rule,$msq)
public function checklogin(Request $request)
{
// The chef return value
$ Status = 0;
$ result = '';
$ data = $ Request -& GT; Param ();
# // Create verification rules
being having d to be entered in the ’name|username' => 'require',
'Verify | Verification Code' = & GT; 'Require | CAPTCHA', // Username must be filled in
];
// data,$rule);
//If the verification passes
if ($result === true){
//Construct query conditions
$map =[
'name' => $data['name'],
"password" => md5($data["password"]),
/Query user information
/
$status = 1;
$result = 'Verification passed, click [OK] to enter'; =>$status,'message'=>$result,'data'=>$data];
}
//Log out
public function logout()
{
}
}
This is the html of the login page login.html
-xs-8"> div>
;
看不清,换一张