Skip to content

Commit abe136d

Browse files
committed
fix labels semantics in login component
1 parent 5ee781c commit abe136d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/official-site/examples/authentication/login.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ select
99
'Password' as password,
1010
case when $failed is not null then 'Invalid username or password. In this demo, you can log in with admin / admin.' end as error_message,
1111
'In this demo, the username is "admin" and the password is "admin".' as footer_md,
12-
'Sign in' as validate;
12+
'Log in' as validate;
1313

1414
select 'text' as component, '
1515

examples/user-authentication/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ services:
22
web:
33
image: lovasoa/sqlpage:main # main is cutting edge, use sqlpage/SQLPage:latest for the latest stable version
44
build:
5-
context: ".."
5+
context: "../.."
66
ports:
77
- "8080:8080"
88
volumes:

sqlpage/templates/login.handlebars

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
</div>
3232
</div>
3333
{{/if}}
34-
<label class="form-label">{{username}}</label>
34+
<label class="form-label" for="username">{{username}}</label>
3535
<div class="input-icon mb-3">
3636
<span class="input-icon-addon">{{icon_img (default username_icon 'user-circle')}}</span>
3737
<input type="text" name="username" id="username" value="" class="form-control" placeholder="{{username}}" required="required" autofocus autocomplete="username"/>
3838
</div>
39-
<label class="form-label">{{password}}
39+
<label class="form-label" for="password">{{password}}
4040
{{#if forgot_password_text}}
4141
<span class="form-label-description"><a href="{{forgot_password_link}}">{{forgot_password_text}}</a></span>
4242
{{/if}}

0 commit comments

Comments
 (0)