Add autocomplete attribute to HTML forms
Add autocomplete for email, name, username, current-password, new-password and one-time-code fields.
This commit is contained in:
committed by
fguillot
parent
dca39a7fb2
commit
050fe904ba
@@ -2,29 +2,29 @@
|
||||
<div class="page-header">
|
||||
<h2><?= t('Sign-up') ?></h2>
|
||||
</div>
|
||||
<form method="post" action="<?= $this->url->href('UserInviteController', 'register', array('token' => $token)) ?>" autocomplete="off">
|
||||
<form method="post" action="<?= $this->url->href('UserInviteController', 'register', array('token' => $token)) ?>">
|
||||
<?= $this->form->csrf() ?>
|
||||
|
||||
<fieldset>
|
||||
<legend><?= t('Profile') ?></legend>
|
||||
|
||||
<?= $this->form->label(t('Username'), 'username') ?>
|
||||
<?= $this->form->text('username', $values, $errors, array('autofocus', 'required', 'maxlength="191"')) ?>
|
||||
<?= $this->form->text('username', $values, $errors, array('autofocus', 'required', 'maxlength="191"', 'autocomplete="username"')) ?>
|
||||
|
||||
<?= $this->form->label(t('Name'), 'name') ?>
|
||||
<?= $this->form->text('name', $values, $errors) ?>
|
||||
<?= $this->form->text('name', $values, $errors, ['autocomplete="name"']) ?>
|
||||
|
||||
<?= $this->form->label(t('Email'), 'email') ?>
|
||||
<?= $this->form->email('email', $values, $errors, array('required')) ?>
|
||||
<?= $this->form->email('email', $values, $errors, array('required', 'autocomplete="email"')) ?>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend><?= t('Credentials') ?></legend>
|
||||
<?= $this->form->label(t('Password'), 'password') ?>
|
||||
<?= $this->form->password('password', $values, $errors, array('required')) ?>
|
||||
<?= $this->form->password('password', $values, $errors, array('required', 'autocomplete="new-password"')) ?>
|
||||
|
||||
<?= $this->form->label(t('Confirmation'), 'confirmation') ?>
|
||||
<?= $this->form->password('confirmation', $values, $errors, array('required')) ?>
|
||||
<?= $this->form->password('confirmation', $values, $errors, array('required', 'autocomplete="new-password"')) ?>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
|
||||
Reference in New Issue
Block a user