(password = "")
| 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) |
no outgoing calls
no test coverage detected