a11y: init
parent
c2928dfbfb
commit
77a48bf3fb
@ -0,0 +1,8 @@
|
||||
import { Context, UserModel } from 'hydrooj';
|
||||
|
||||
export async function apply(ctx: Context) {
|
||||
// Auto authorize user 2 as super admin
|
||||
ctx.on('handler/after/UserRegisterWithCode#post', async (that) => {
|
||||
if (that.session.uid === 2) await UserModel.setSuperAdmin(2);
|
||||
});
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "@hydrooj/a11y",
|
||||
"version": "0.0.1"
|
||||
}
|
Loading…
Reference in New Issue