small difference
This commit is contained in:
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
} | {
|
||||
valid: boolean;
|
||||
message?: undefined;
|
||||
};
|
||||
CheckDifference(newPassword: string, oldPassword: string, neededDifference?: number): {
|
||||
valid: boolean;
|
||||
message: string;
|
||||
} | {
|
||||
valid: boolean;
|
||||
message?: undefined;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user