jwt 怎么取消 password 字段作为登录验证?
问下lumen 中我用jwt生成token,在登录中jwt中是有个password字段作为验证,怎么取消password认证;
做一个验证码直接登录的功能,不需要密码, 登录生成token,可是jwt需要有个index必须要password;
$credentials = [
'mobile' => $mobile,
'password' => $password,//怎么取消该字段的验证
];
$token = \Auth::attempt($credentials);
推荐文章: