Skip to content

Commit

Permalink
fix: RT-99514 unique state for suspended user (#472)
Browse files Browse the repository at this point in the history
* 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 07039b0.

* fix: RT-99514 balanced message
  • Loading branch information
wesleyboar authored Jul 26, 2024
1 parent ff93a75 commit 3c871cd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions libs/tup-components/src/auth/LoginComponent/LoginComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ const LoginError: React.FC<{ status?: number; isError: boolean }> = ({
</div>
);
}
if (status === 451) {
return (
<div className="c-form__errors">
Your account has been suspended. Please{' '}
<a
rel="noopener noreferrer"
target="_blank"
href="https://accounts.tacc.utexas.edu/login_support"
>
request account support
</a>
.
</div>
);
}
return (
<div className="c-form__errors">
Sorry. Something went wrong while trying to log in. Please try again
Expand Down

0 comments on commit 3c871cd

Please sign in to comment.