File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2609,7 +2609,7 @@ async def admin_login_handler(request: Request, db: Session = Depends(get_db)) -
26092609 return RedirectResponse (url = f"{ root_path } /admin/login?error=missing_fields" , status_code = 303 )
26102610
26112611 # First-Party
2612- from mcpgateway .services .email_auth_service import EmailAuthService
2612+ from mcpgateway .services .email_auth_service import EmailAuthService # pylint: disable=import-outside-toplevel
26132613
26142614 auth_service = EmailAuthService (db )
26152615
@@ -2622,15 +2622,15 @@ async def admin_login_handler(request: Request, db: Session = Depends(get_db)) -
26222622 return RedirectResponse (url = f"{ root_path } /admin/login?error=invalid_credentials" , status_code = 303 )
26232623
26242624 # First-Party
2625- from mcpgateway .routers .email_auth import create_access_token
2625+ from mcpgateway .routers .email_auth import create_access_token # pylint: disable=import-outside-toplevel
26262626
26272627 token , _ = await create_access_token (user )
26282628
26292629 root_path = request .scope .get ("root_path" , "" )
26302630 response = RedirectResponse (url = f"{ root_path } /admin" , status_code = 303 )
26312631
26322632 # First-Party
2633- from mcpgateway .utils .security_cookies import set_auth_cookie
2633+ from mcpgateway .utils .security_cookies import set_auth_cookie # pylint: disable=import-outside-toplevel
26342634
26352635 set_auth_cookie (response , token , remember_me = False )
26362636 default_admin_username = settings .platform_admin_email
You can’t perform that action at this time.
0 commit comments