Return True if the command is a password change statement.
(text: str)
| 560 | |
| 561 | |
| 562 | def is_password_change(text: str) -> bool: |
| 563 | """Return True if the command is a password change statement.""" |
| 564 | stmt_type, _ = classify_sandbox_statement(text) |
| 565 | return stmt_type in ('alter_user', 'set_password') |
| 566 | |
| 567 | |
| 568 | def extract_new_password(text: str) -> str | None: |