# HG changeset patch # User Kim Alvefur # Date 1690762044 -7200 # Node ID e86a1018cdb353ad879d79f161deae477ad2848a # Parent 6109496a7ccc02268e970064b885ecd5ba43ef8b mod_http_oauth2: Present errors in HTML Nice semantic things that don't require JavaScript diff -r 6109496a7ccc -r e86a1018cdb3 mod_http_oauth2/html/consent.html --- a/mod_http_oauth2/html/consent.html Mon Jul 31 02:05:49 2023 +0200 +++ b/mod_http_oauth2/html/consent.html Mon Jul 31 02:07:24 2023 +0200 @@ -7,10 +7,11 @@ - {state.error&
+{state.error& +

{state.error}

-
} - +
+
}

{site_name}

diff -r 6109496a7ccc -r e86a1018cdb3 mod_http_oauth2/html/device.html --- a/mod_http_oauth2/html/device.html Mon Jul 31 02:05:49 2023 +0200 +++ b/mod_http_oauth2/html/device.html Mon Jul 31 02:07:24 2023 +0200 @@ -7,15 +7,17 @@ +{error& + +

{error.text}

+
+
}

{site_name}

Device Authorization - {error&
-

{error.text}

-
} {client&

Authorization completed. You can go back to {client.client_name}.

} diff -r 6109496a7ccc -r e86a1018cdb3 mod_http_oauth2/html/login.html --- a/mod_http_oauth2/html/login.html Mon Jul 31 02:05:49 2023 +0200 +++ b/mod_http_oauth2/html/login.html Mon Jul 31 02:07:24 2023 +0200 @@ -7,6 +7,11 @@ +{state.error& + +

{state.error}

+
+
}

{site_name}

@@ -14,9 +19,6 @@
Sign in

Sign in to your account to continue.

- {state.error&
-

{state.error}

-
}


diff -r 6109496a7ccc -r e86a1018cdb3 mod_http_oauth2/html/style.css --- a/mod_http_oauth2/html/style.css Mon Jul 31 02:05:49 2023 +0200 +++ b/mod_http_oauth2/html/style.css Mon Jul 31 02:07:24 2023 +0200 @@ -21,7 +21,7 @@ .error { - margin: 0.75em; + margin: 0.75em auto; background-color: #f8d7da; color: #842029; border: solid 1px #f5c2c7;