Skip to content

Commit

Permalink
Fix 'username unicode characters on login page'. Really strange this …
Browse files Browse the repository at this point in the history
…one as caused by 'json_encode' in 'quote' method of 'mustache_quote_helper' being called when '!}}' and '{{' not used to make the 'input' tag on one line in the output.
  • Loading branch information
gjb2048 committed Sep 21, 2023
1 parent f3d8c2e commit 8d3d005
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 2 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Version Information
Version 402.1.3 - TBR
--------------------------
1. Update theme version of Font Awesome 6 to 6.4.2 from 6.4.0.
2. Fix 'username unicode characters on login page'. Really strange this one as caused by 'json_encode' in 'quote' method
of 'mustache_quote_helper' being called when '!}}' and '{{' not used to make the 'input' tag on one line in the output.

Version 402.1.2 - 08/09/23
--------------------------
Expand Down
19 changes: 10 additions & 9 deletions templates/core/loginform.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,19 @@
{{#str}} usernameemail {{/str}}
{{/canloginbyemail}}
</label>
<input type="text" name="username" id="username"
class="form-control"
value="{{username}}"
placeholder={{#quote}}{{^canloginbyemail}}{{#str}}username{{/str}}{{/canloginbyemail}}{{#canloginbyemail}}{{#str}}usernameemail{{/str}}{{/canloginbyemail}}{{/quote}}
autocomplete="username">
<input type="text" name="username" id="username" {{!
!}}class="form-control" {{!
!}}value="{{username}}" {{!
!}}placeholder="{{^canloginbyemail}}{{#cleanstr}}username{{/cleanstr}}{{/canloginbyemail}}{{!
!}}{{#canloginbyemail}}{{#cleanstr}}usernameemail{{/cleanstr}}{{/canloginbyemail}}" {{!
!}}autocomplete="username">
</div>
<div class="form-group">
<label for="password" class="sr-only">{{#str}} password {{/str}}</label>
<input type="password" name="password" id="password" value=""
class="form-control"
placeholder={{#quote}}{{#str}}password{{/str}}{{/quote}}
autocomplete="current-password">
<input type="password" name="password" id="password" value="" {{!
!}}class="form-control" {{!
!}}placeholder="{{#cleanstr}}password{{/cleanstr}}" {{!
!}}autocomplete="current-password">
</div>
{{#rememberusername}}
<div class="rememberpass mt-3">
Expand Down

0 comments on commit 8d3d005

Please sign in to comment.