comparison mod_http_oauth2/html/device.html @ 5608:1893ae742f66

mod_http_oauth2: Show errors on device flow user code entry page If the user enters the code incorrectly, having to click back to try again is no fun. Instead, show the error and the code entry form again.
author Kim Alvefur <zash@zash.se>
date Wed, 19 Jul 2023 13:05:47 +0200
parents 7040d0772758
children 8de02381e80a
comparison
equal deleted inserted replaced
5607:ad9b8f659c96 5608:1893ae742f66
9 <body> 9 <body>
10 <main> 10 <main>
11 <h1>{site_name}</h1> 11 <h1>{site_name}</h1>
12 <fieldset> 12 <fieldset>
13 <legend>Device Authorization</legend> 13 <legend>Device Authorization</legend>
14 {error&<div class="error">
15 <p>{error.text}</p>
16 </div>}
14 {client& 17 {client&
15 <p>Authorization completed. You can go back to 18 <p>Authorization completed. You can go back to
16 <em>{client.client_name}</em>.</p>} 19 <em>{client.client_name}</em>.</p>}
17 {client~ 20 {client~
18 <p>Enter the code to continue.</p> 21 <p>Enter the code to continue.</p>