MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / prepare

Method prepare

packages/hydrooj/src/handler/user.ts:245–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243export class UserRegisterHandler extends Handler {
244 noCheckPermView = true;
245 async prepare() {
246 if (!system.get('server.login')) throw new BuiltinLoginError();
247 }
248
249 async get() {
250 this.response.template = 'user_register.html';

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected