/** * Checks if the password is strong enough. * @param password the password to check */ export function checkPassword(password: string): boolean { let passwordRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{8,})/; return passwordRegex.test(password); }