|
|
|
|
@ -126,6 +126,19 @@ class AuthController extends Controller
|
|
|
|
|
return $this->respondWithToken($token);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @OA\Post(
|
|
|
|
|
* path="/manager/login-by-username",
|
|
|
|
|
* summary="V2-通过用户名密码登录",
|
|
|
|
|
* description="",
|
|
|
|
|
* @OA\Parameter(name="username", in="query", @OA\Schema(type="string"), required=true, description="用户名"),
|
|
|
|
|
* @OA\Parameter(name="password", in="query", @OA\Schema(type="string"), required=true, description="密码"),
|
|
|
|
|
* @OA\Response(
|
|
|
|
|
* response="200",
|
|
|
|
|
* description="管理老师通过用户名密码登录"
|
|
|
|
|
* )
|
|
|
|
|
* )
|
|
|
|
|
*/
|
|
|
|
|
public function loginByUsername()
|
|
|
|
|
{
|
|
|
|
|
$credentials = request(['username', 'password']);
|
|
|
|
|
|