Skip to content

Commit

Permalink
Merge pull request #120 from waifuvault/simple-cleanup
Browse files Browse the repository at this point in the history
cleanup
  • Loading branch information
VictoriqueMoe committed Mar 17, 2024
2 parents 36b0769 + 9ff80d7 commit 5b86272
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Logger } from "@tsed/common";
scope: ProviderScope.SINGLETON,
type: CAPTCHA_ENGINE,
})
export class TurnstileCaptcha extends AbstractCaptchaEngine<TurnstileResponse> {
export class TurnstileCaptchaEngine extends AbstractCaptchaEngine<TurnstileResponse> {
@Constant(GlobalEnv.CAPTCHA_SECRET_KEY)
private readonly turnstileSecretKey: string;

Expand Down
3 changes: 2 additions & 1 deletion src/engine/impl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
export * from "./av/ClamAvEngine.js";
export * from "./av/MsDefenderEngine.js";
export * from "./captcha/AbstractCaptchaEngine.js";
export * from "./captcha/HcaptchaEngine.js";
export * from "./captcha/ReCAPTCHAEngine.js";
export * from "./captcha/TurnstileCaptcha.js";
export * from "./captcha/TurnstileCaptchaEngine.js";
export * from "./HttpErrorRenderers/AuthenticationErrorRenderEngine.js";
export * from "./HttpErrorRenderers/DefaultHttpRenderEngine.js";
export * from "./HttpErrorRenderers/FileProtectedRenderEngine.js";
Expand Down
2 changes: 2 additions & 0 deletions src/manager/CaptchaManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export class CaptchaManager {
this._engine = captchaFactory.getEnabledService();
if (this._engine === null) {
this.logger.warn("No captcha service is enabled");
} else {
this.logger.info(`Using ${this._engine.type} as captcha service`);
}
}

Expand Down

0 comments on commit 5b86272

Please sign in to comment.