MCPcopy
hub / github.com/AstrBotDevs/AstrBot / setup

Method setup

astrbot/dashboard/services/auth_service.py:178–184  ·  view source on GitHub ↗
(self, post_data: object)

Source from the content-addressed store, hash-verified

176 )
177
178 async def setup(self, post_data: object) -> AuthServiceResult:
179 if not self.can_skip_default_password_auth():
180 return self.error("Setup without password is not enabled")
181 if not await self.is_setup_required():
182 return self.error("Setup is not required")
183
184 return await self.complete_setup(post_data)
185
186 async def setup_authenticated(
187 self,

Callers 2

_setupFunction · 0.80
setupFunction · 0.80

Calls 4

errorMethod · 0.95
is_setup_requiredMethod · 0.95
complete_setupMethod · 0.95

Tested by

no test coverage detected