RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/2fa/server/code/EmailCheck.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function send2FAEmail has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private async send2FAEmail(address: string, random: string, user: IUser): Promise<void> {
        const language = user.language || settings.get('Language') || 'en';

        const t = (s: string): string => i18n.t(s, { lng: language });

Severity: Minor
Found in apps/meteor/app/2fa/server/code/EmailCheck.ts - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

            return false;
    Severity: Major
    Found in apps/meteor/app/2fa/server/code/EmailCheck.ts - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status