_upload_tmp_path. Internal helper function. This docstring was added automatically to improve maintainability. Args: upload_id: Parameter. Returns: Varies.
(upload_id: str)
| 11727 | Args: |
| 11728 | username: Parameter. |
| 11729 | |
| 11730 | Returns: |
| 11731 | Varies. |
| 11732 | """ |
| 11733 | try: |
| 11734 | sec = get_user_security(username) |
| 11735 | return bool(int(sec.get("enabled") or 0) == 1 and sec.get("q1") and sec.get("q2") and sec.get("q3")) |
| 11736 | except Exception: |
| 11737 | return False |
| 11738 | |
| 11739 | def set_user_security(username: str, q1: str, q2: str, q3: str, a1: str, a2: str, a3: str, enabled: bool): |
| 11740 | """set_user_security. |
| 11741 | |
| 11742 | Internal helper function. |
| 11743 | |
| 11744 | This docstring was added automatically to improve maintainability. |
| 11745 |