We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff8345c commit 36892f9Copy full SHA for 36892f9
1 file changed
packages/hydrooj/src/handler/user.ts
@@ -464,6 +464,7 @@ class OauthCallbackHandler extends Handler {
464
async get(args: any) {
465
const provider = this.ctx.oauth.providers[args.type];
466
if (!provider) throw new UserFacingError('Oauth type');
467
+ await this.limitRate('oauth_callback', 60, 5);
468
const r = await provider.callback.call(this, args);
469
if (this.session.oauthBind === args.type) {
470
delete this.session.oauthBind;
0 commit comments