News page: worldwide headlines by topic, in EN/EL based on the UI language.
()
| 10572 | return "Password must be at least 10 characters." |
| 10573 | if len(pw) > 256: |
| 10574 | return "Password is too long." |
| 10575 | low = pw.lower() |
| 10576 | u = (username or "").strip().lower() |
| 10577 | if u and u in low: |
| 10578 | return "Password must not contain your username." |
| 10579 | score = 0 |
| 10580 | score += bool(re.search(r"[a-z]", pw)) |
| 10581 | score += bool(re.search(r"[A-Z]", pw)) |
| 10582 | score += bool(re.search(r"\d", pw)) |
| 10583 | score += bool(re.search(r"[^A-Za-z0-9]", pw)) |
| 10584 | if score < 3: |