Skip to content

Commit

Permalink
Adding autocomplete to password input elements
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-gomes committed Jul 16, 2020
1 parent 03a3e9c commit a92fdd8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Expand Up @@ -24,11 +24,11 @@
</div>
<div class="input">
<input type="password" class="text-field full" name="password" placeholder="password"
data-error="{{ errors.password }}" />
autocomplete="new-password" data-error="{{ errors.password }}" />
</div>
<div class="input">
<input type="password" class="text-field full" name="password_confirm" placeholder="confirm password"
data-error="{{ errors.password_confirm }}" />
autocomplete="new-password" data-error="{{ errors.password_confirm }}" />
</div>
<div class="buttons">
<span class="button medium button-color button-blue" data-submit="true">Sign up</span>
Expand Down
4 changes: 2 additions & 2 deletions src/appier_extras/parts/admin/templates/fluid/reset.html.tpl
Expand Up @@ -13,11 +13,11 @@
<input type="hidden" name="reset_token" value="{{ reset_token }}" />
<div class="input">
<input type="password" class="text-field full focus" name="password"
value="{{ password }}" placeholder="password" />
autocomplete="new-password" value="{{ password }}" placeholder="password" />
</div>
<div class="input">
<input type="password" class="text-field full" name="password_confirm"
value="{{ password_confirm }}" placeholder="confirm password" />
autocomplete="new-password" value="{{ password_confirm }}" placeholder="confirm password" />
</div>
<div class="buttons">
<span class="button medium button-color button-blue" data-submit="true">Reset</span>
Expand Down
Expand Up @@ -19,7 +19,8 @@
placeholder="username" />
</div>
<div class="input">
<input type="password" class="text-field full" name="password" placeholder="password" />
<input type="password" class="text-field full" name="password"
autocomplete="current-password" placeholder="password" />
</div>
<div class="forgot">
<a href="{{ url_for('admin.recover') }}">Forgot your password?</a>
Expand Down
Expand Up @@ -19,7 +19,8 @@
placeholder="username" />
</div>
<div class="input">
<input type="password" class="text-field full" name="password" placeholder="password" />
<input type="password" class="text-field full" name="password"
autocomplete="current-password" placeholder="password" />
</div>
<div class="forgot">
<a href="{{ url_for('admin.recover') }}">Forgot your password?</a>
Expand Down

0 comments on commit a92fdd8

Please sign in to comment.