added more support

This commit is contained in:
2024-02-12 19:06:52 +01:00
parent 4256fe9a72
commit 86f8bc139a
37 changed files with 762 additions and 42 deletions
+20
View File
@@ -0,0 +1,20 @@
export default class PassPolicy {
private options;
constructor(options: {
minLength: number;
maxLength: number;
minLower: number;
minUpper: number;
minNum: number;
minSpecial: number;
specialChars: string;
});
validate(password: string): {
valid: boolean;
message?: string;
};
CheckDifference(newPassword: string, oldPassword: string, neededDifference?: number): {
valid: boolean;
message?: string;
};
}