|
@@ -3,7 +3,6 @@
|
|
* @2021-7-10
|
|
* @2021-7-10
|
|
**/
|
|
**/
|
|
namespace app\Admin\controller;
|
|
namespace app\Admin\controller;
|
|
-use think\admin\helper\TokenHelper;
|
|
|
|
use think\Db;
|
|
use think\Db;
|
|
use app\Admin\model\User;
|
|
use app\Admin\model\User;
|
|
class Login
|
|
class Login
|
|
@@ -15,6 +14,12 @@ class Login
|
|
* @param password 密码
|
|
* @param password 密码
|
|
*
|
|
*
|
|
*/
|
|
*/
|
|
|
|
+ public function __construct(){
|
|
|
|
+ if(request()->isOptions()){
|
|
|
|
+ echo '';
|
|
|
|
+ die();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
public function index(){
|
|
public function index(){
|
|
$post=request()->post();
|
|
$post=request()->post();
|
|
$username = isset($post['username'])&&$post['username']!="" ? trim($post['username']) :"";
|
|
$username = isset($post['username'])&&$post['username']!="" ? trim($post['username']) :"";
|