Skip to content

fix(webserver): make the login error message readable - #96

Merged
ngosang merged 1 commit into
amule-org:masterfrom
ngosang:fix/presentational-html-to-css
Jun 11, 2026
Merged

fix(webserver): make the login error message readable#96
ngosang merged 1 commit into
amule-org:masterfrom
ngosang:fix/presentational-html-to-css

Conversation

@ngosang

@ngosang ngosang commented Jun 11, 2026

Copy link
Copy Markdown
Member

The failed-login message was dark red (#c00000) bold text sitting directly on the mid-blue gradient of the login banner image -- nearly illegible. Render it as white text on a solid red badge instead (inline-block span with padding), which reads clearly on the banner.

The rule lives in login.php's inline <style> block because style.css is not served to unauthenticated clients (see the modernization notes), and this message only ever renders on the login page.

Verified against the running webserver with a headless-Chromium screenshot of a wrong-password submit; the error-free login page is pixel-identical to before.

The failed-login message was dark red (#c00000) bold text sitting
directly on the mid-blue gradient of the login banner image -- nearly
illegible. Render it as white text on a solid red badge instead
(inline-block span with padding), which reads clearly on the banner.

The rule lives in login.php's inline <style> block because style.css
is not served to unauthenticated clients (see the modernization notes),
and this message only ever renders on the login page.

Verified against the running webserver with a headless-Chromium
screenshot of a wrong-password submit; the error-free login page is
pixel-identical to before.
@ngosang
ngosang merged commit d9ace12 into amule-org:master Jun 11, 2026
8 checks passed
@ngosang
ngosang deleted the fix/presentational-html-to-css branch June 11, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant