comparison mod_http_oauth2/html/login.html @ 5526:46e512f4ba14

mod_http_oauth2: Simplify template using if-falsy operator Relies on Prosody rev af1e3b7d9ea3 which added the {var~if-falsy}, released in 0.12. Since this module requires trunk this is fine.
author Kim Alvefur <zash@zash.se>
date Wed, 07 Jun 2023 12:54:52 +0200
parents 398d936e77fb
children 8de02381e80a
comparison
equal deleted inserted replaced
5525:87268f4e6a2e 5526:46e512f4ba14
14 <p>Sign in to your account to continue.</p> 14 <p>Sign in to your account to continue.</p>
15 {state.error&<div class="error"> 15 {state.error&<div class="error">
16 <p>{state.error}</p> 16 <p>{state.error}</p>
17 </div>} 17 </div>}
18 <form method="post"> 18 <form method="post">
19 <input type="text" name="username" placeholder="Username" aria-label="Username" required {extra.no_username_hint&autofocus}{extra.username_hint& value="{extra.username_hint?}"}><br/> 19 <input type="text" name="username" placeholder="Username" aria-label="Username" required {extra.username_hint~autofocus}{extra.username_hint& value="{extra.username_hint?}"}><br/>
20 <input type="password" name="password" placeholder="Password" aria-label="Password" autocomplete="current-password" required {extra.username_hint&autofocus}><br/> 20 <input type="password" name="password" placeholder="Password" aria-label="Password" autocomplete="current-password" required {extra.username_hint&autofocus}><br/>
21 <input type="submit" value="Sign in"> 21 <input type="submit" value="Sign in">
22 </form> 22 </form>
23 </fieldset> 23 </fieldset>
24 </main> 24 </main>