sjyangkevin opened a new pull request, #77660: URL: https://github.com/apache/airflow/pull/77660
### Why Users created without a password, for example by `airflow users import` or at their first OAuth, LDAP or remote-user login, have no local password. This stores them without a password hash and applies the empty-password rule that the token endpoint already uses to every database password check, so all password checks behave the same. ### Changes - Database password checks share one comparison, which applies the same empty-password rule as the token endpoint. - Users created without a password are stored without a password hash as `None`. - A failed login for a user without a password counts toward the failed-login total, like a wrong password. ### Tests - New unit tests for the login form, the database password checks, and user creation without a password. - The FAB provider test suite passes locally. - Checked end to end against a local Airflow API server with the FAB auth manager: the login form and the token endpoint, for users with and without a password. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Opus 5.5) Generated-by: Claude Code (Opus 5.5) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
