Skip to content

Commit

Permalink
Merge pull request #3037 from andrewbaldwin44/task/errors-on-login-page
Browse files Browse the repository at this point in the history
Web UI: Allow Showing Only an Error Message on the Login Page
  • Loading branch information
cyberw authored Jan 24, 2025
2 parents 3ddcc1d + 704562b commit c2bc7ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions locust/webui/src/pages/Auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ export default function Auth({
{info && !customForm && !usernamePasswordCallback && (
<Alert severity='info'>{<Markdown content={info} />}</Alert>
)}
{error && !customForm && !usernamePasswordCallback && (
<Alert severity='error'>{<Markdown content={error} />}</Alert>
)}
{authProviders && (
<Box sx={{ display: 'flex', flexDirection: 'column', rowGap: 1 }}>
{authProviders.map(({ label, callbackUrl, iconUrl }, index) => (
Expand Down

0 comments on commit c2bc7ef

Please sign in to comment.