Skip to content

Commit d8aad3c

Browse files
committed
Fixes the Pylint C0415 error
Signed-off-by: NAYANAR <[email protected]>
1 parent a5ce104 commit d8aad3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mcpgateway/admin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)