mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: add hydrooj install command
This commit is contained in:
1 parent
e92cbeb1ee
commit
bf37fb4848
14 files changed
+62
-26
No files matched your search
@@ -15,7 +15,7 @@ export function apply(ctx: Context) {
|
||||
.field('secret', SystemModel.get('recaptcha.secret'))
|
||||
.field('response', thisArg.args.captcha)
|
||||
.field('remoteip', thisArg.request.ip);
|
||||
if (!response.body.success) throw new ForbiddenError('captcha fail');
|
||||
if (!response.body.success) throw new ForbiddenError('Failed to solve the captcha.');
|
||||
});
|
||||
|
||||
ctx.on('handler/after/UserRegister', async (thisArg) => {
|
||||
@@ -24,4 +24,8 @@ export function apply(ctx: Context) {
|
||||
<input type="text" name="captcha" id="_captcha" style="display:none">
|
||||
<input type="submit" id="_submit" style="display:none">`;
|
||||
});
|
||||
|
||||
ctx.i18n.load('zh', {
|
||||
'Failed to solve the captcha': '没有通过 ReCaptcha 验证。',
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user