MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / validatePassword

Method validatePassword

panel/src/app/service/user_service.ts:62–66  ·  view source on GitHub ↗
(password = "")

Source from the content-addressed store, hash-verified

60 }
61
62 validatePassword(password = "") {
63 if (password.length < 9 || password.length > 36) return false;
64 const reg = /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/;
65 return reg.test(password);
66 }
67
68 check2FA(code: string, user: IUser, totpDriftToleranceSteps: number = 0) {
69 if (!user.secret)

Callers 4

login_router.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected