This commit is contained in:
Manav Rathi
2024-07-01 13:27:57 +05:30
parent 62c9b2afc2
commit fbae7b6fd0
3 changed files with 10 additions and 8 deletions

View File

@@ -1,5 +1,7 @@
import { PasswordStrength } from "@ente/accounts/constants";
import { estimatePasswordStrength } from "@ente/accounts/utils";
import {
PasswordStrength,
estimatePasswordStrength,
} from "@ente/accounts/utils";
import { FlexWrapper } from "@ente/shared/components/Container";
import { Typography } from "@mui/material";
import { t } from "i18next";

View File

@@ -1,5 +0,0 @@
export enum PasswordStrength {
WEAK = "WEAK",
MODERATE = "MODERATE",
STRONG = "STRONG",
}

View File

@@ -1,6 +1,11 @@
import { PasswordStrength } from "@ente/accounts/constants";
import zxcvbn from "zxcvbn";
export enum PasswordStrength {
WEAK = "WEAK",
MODERATE = "MODERATE",
STRONG = "STRONG",
}
export const convertBufferToBase64 = (buffer: Buffer) => {
return buffer.toString("base64");
};