Skip to content

Commit

Permalink
Merge pull request #5017 from laurahaenel/bugfix/4944-autocomplete-in…
Browse files Browse the repository at this point in the history
…-new-passwort

TASK: set new-password in EditAccount page
  • Loading branch information
bwaidelich authored Apr 27, 2024
2 parents 599092b + 7096cfe commit b623608
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
<div class="neos-control-group{f:validation.ifHasErrors(for: 'password', then: ' neos-error')}">
<label class="neos-control-label" for="password[0]">{neos:backend.translate(id: 'password')}</label>
<div class="neos-controls">
<f:form.password name="password[0]" id="password[0]" class="neos-span12"/>
<f:form.password additionalAttributes="{autocomplete: 'new-password'}" name="password[0]" id="password[0]" class="neos-span12"/>
</div>
</div>

<div class="neos-control-group{f:validation.ifHasErrors(for: 'password', then: ' neos-error')}">
<label class="neos-control-label" for="password[1]">{neos:backend.translate(source: 'Modules', id: 'users.repeatPassword')}</label>
<div class="neos-controls">
<f:form.password name="password[1]" id="password[1]" class="neos-span12"/>
<f:form.password additionalAttributes="{autocomplete: 'new-password'}" name="password[1]" id="password[1]" class="neos-span12"/>
<f:render partial="Module/Shared/FieldValidationResults" arguments="{fieldname: 'password'}"/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ <h2>{neos:backend.translate(id: 'user.new.subtitle', value: 'Create a new user',
<div class="neos-control-group{f:validation.ifHasErrors(for: 'username', then: ' neos-error')}">
<label class="neos-control-label" for="username">{neos:backend.translate(id: 'users.new.userData.username', value: 'Username', source: 'Modules', package: 'Neos.Neos')}</label>
<div class="neos-controls">
<f:form.textfield name="username" id="username" class="neos-span12" autofocus="true" required="true" />
<f:form.textfield name="username" id="username" class="neos-span12" autofocus="true" required="true" additionalAttributes="{autocomplete: 'username'}" />
<f:render partial="Module/Shared/FieldValidationResults" arguments="{fieldname: 'username'}"/>
</div>
</div>

<div class="neos-control-group{f:validation.ifHasErrors(for: 'password', then: ' neos-error')}">
<label class="neos-control-label" for="password[0]">{neos:backend.translate(id: 'users.new.userData.password', value: 'Password', source: 'Modules', package: 'Neos.Neos')}</label>
<div class="neos-controls">
<f:form.password name="password[0]" id="password[0]" class="neos-span12" additionalAttributes="{required: true}" />
<f:form.password name="password[0]" id="password[0]" class="neos-span12" additionalAttributes="{required: true, autocomplete: 'new-password'}" />
</div>
</div>

<div class="neos-control-group{f:validation.ifHasErrors(for: 'password', then: ' neos-error')}">
<label class="neos-control-label" for="password[1]">{neos:backend.translate(id: 'users.new.userData.repeatPassword', value: 'Repeat password', source: 'Modules', package: 'Neos.Neos')}</label>
<div class="neos-controls">
<f:form.password name="password[1]" id="password[1]" class="neos-span12" additionalAttributes="{required: true}" />
<f:form.password name="password[1]" id="password[1]" class="neos-span12" additionalAttributes="{required: true, autocomplete: 'new-password'}" />
<f:render partial="Module/Shared/FieldValidationResults" arguments="{fieldname: 'password'}"/>
</div>
</div>
Expand Down

0 comments on commit b623608

Please sign in to comment.