MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / _login

Function _login

astrbot/dashboard/api/auth.py:289–304  ·  view source on GitHub ↗
(
    request: Request,
    payload: LoginRequest,
    service: AuthService,
)

Source from the content-addressed store, hash-verified

287
288
289async def _login(
290 request: Request,
291 payload: LoginRequest,
292 service: AuthService,
293):
294 result = await service.login(
295 _payload(payload),
296 trusted_device_cookie_token=request.cookies.get(
297 TOTP_TRUSTED_DEVICE_COOKIE_NAME,
298 "",
299 ).strip(),
300 )
301 return _auth_service_response(
302 request,
303 result,
304 )
305
306
307async def _setup_status(service: AuthService):

Callers 2

loginFunction · 0.85
dashboard_loginFunction · 0.85

Calls 4

_payloadFunction · 0.85
_auth_service_responseFunction · 0.85
loginMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected