Skip to content

Commit

Permalink
fix(html) : Autocomplete on login inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
madzinah committed Oct 27, 2023
1 parent 47029c8 commit 04001e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/functions-html.php
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ function yourls_login_screen( $error_msg = '' ) {
?>
<p>
<label for="username"><?php yourls_e( 'Username' ); ?></label><br />
<input type="text" id="username" name="username" size="30" class="text" />
<input type="text" id="username" name="username" size="30" class="text" autocomplete="username" />
</p>
<p>
<label for="password"><?php yourls_e( 'Password' ); ?></label><br />
Expand All @@ -768,7 +768,7 @@ function yourls_login_screen( $error_msg = '' ) {
?>
<p style="text-align: right;">
<?php yourls_nonce_field('admin_login'); ?>
<input type="submit" id="submit" name="submit" value="<?php yourls_e( 'Login' ); ?>" class="button" />
<input type="submit" id="submit" name="submit" value="<?php yourls_e( 'Login' ); ?>" class="button" autocomplete="current-password" />
</p>
<?php
yourls_do_action( 'login_form_end' );
Expand Down

0 comments on commit 04001e5

Please sign in to comment.