You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2025/04/23 18:28:29 UTC

(airflow) 03/04: Fix bug with showing invalid creds on Login UI (#49556)

This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 53da448f6aab8720865cb7db9e7973076a15728b
Author: Kalyan R <ka...@live.com>
AuthorDate: Tue Apr 22 20:14:22 2025 +0530

    Fix bug with showing invalid creds on Login UI (#49556)
    
    (cherry picked from commit 0d31f33139d20dcdb16e8f08113bc635049b4d23)
---
 .../src/airflow/api_fastapi/auth/managers/simple/ui/src/login/Login.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui/src/login/Login.tsx b/airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui/src/login/Login.tsx
index b1963a02484..206cf42e2c0 100644
--- a/airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui/src/login/Login.tsx
+++ b/airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui/src/login/Login.tsx
@@ -79,7 +79,7 @@ export const Login = () => {
         </Heading>
       </Flex>
 
-      {error === null && <ErrorAlert error={error} />}
+      {Boolean(error) && <ErrorAlert error={error} />}
 
       <Text mb={4}>Enter your username and password below:</Text>
       <LoginForm isPending={isPending} onLogin={onLogin} />