From 3c871cd750517ca741d8b9216c23b7722028e8fb Mon Sep 17 00:00:00 2001 From: Wesley B <62723358+wesleyboar@users.noreply.github.com> Date: Fri, 26 Jul 2024 15:52:32 -0500 Subject: [PATCH] fix: RT-99514 unique state for suspended user (#472) * fix: RT-99514 suspended user needs unique state * fix: RT-99514 more specific error * fix: RT-99514 error should not be polite TACC portal designers often remind me that we should not say please or sorry or thank you. Jsut tell the user what happenned and what to do. * fix: RT-99514 unnecessary new line * fix: RT-99514 be a little nicer * Revert "fix: RT-99514 be a little nicer" This reverts commit 07039b01c6c06bb41a894d620c48df0de0008d8f. * fix: RT-99514 balanced message --- .../src/auth/LoginComponent/LoginComponent.tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/libs/tup-components/src/auth/LoginComponent/LoginComponent.tsx b/libs/tup-components/src/auth/LoginComponent/LoginComponent.tsx index fb8340fa9..8cd02fff0 100644 --- a/libs/tup-components/src/auth/LoginComponent/LoginComponent.tsx +++ b/libs/tup-components/src/auth/LoginComponent/LoginComponent.tsx @@ -41,6 +41,21 @@ const LoginError: React.FC<{ status?: number; isError: boolean }> = ({ ); } + if (status === 451) { + return ( +
+ Your account has been suspended. Please{' '} + + request account support + + . +
+ ); + } return (
Sorry. Something went wrong while trying to log in. Please try again