* feat(web): improve session retrieval performance Switch to using `getServerSession` which avoids a HTTP round trip to retrieve session details. Additionally, migrate deprecated `app/lib/auth` calls to to `@calcom/lib` package. * fix: update failing test and lint * Consolidates auth code in features * Update yarn.lock * Update packages/trpc/server/createContext.ts * Oopsie --------- Co-authored-by: zomars <zomars@me.com>
10 lines
226 B
TypeScript
10 lines
226 B
TypeScript
export function validPassword(password: string) {
|
|
if (password.length < 7) return false;
|
|
|
|
if (!/[A-Z]/.test(password) || !/[a-z]/.test(password)) return false;
|
|
|
|
if (!/\d+/.test(password)) return false;
|
|
|
|
return true;
|
|
}
|