From acebc5170bba003573be821142c92e6911099b40 Mon Sep 17 00:00:00 2001 From: idillon <io.daza-dillon@savoirfairelinux.com> Date: Thu, 3 Aug 2023 20:30:47 -0400 Subject: [PATCH] Disable log in button when username or password are empty Change-Id: I86f3f5a10e0ad0768dd084851d33bbc200787825 --- client/src/pages/Login.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/pages/Login.tsx b/client/src/pages/Login.tsx index 4b968e89..53d38283 100644 --- a/client/src/pages/Login.tsx +++ b/client/src/pages/Login.tsx @@ -136,6 +136,7 @@ function LoginForm() { type="submit" onClick={login} sx={{ width: theme.typography.pxToRem(inputWidth), mt: theme.typography.pxToRem(20) }} + disabled={username === '' || password === ''} > {t('login_form_submit_button')} </Button> -- GitLab