Commit 94696a93 authored by Simon Schaufelberger's avatar Simon Schaufelberger Committed by Oliver Bartsch
Browse files

[BUGFIX] Add missing autocomplete for TOTP field

While the authentication form has an autocomplete value
of "one-time-code", it is missing in the setup template.

Resolves: #94998
Releases: master
Change-Id: I662c73a176c926c6c8be06180d1d145aef7a1517
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70760

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Mathias Brodala's avatarMathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
parent afd92f63
......@@ -12,9 +12,9 @@
<span class="badge rounded-pill bg-primary"><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_mfa_provider.xlf:setup.step.1a"/></span> <f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_mfa_provider.xlf:setup.qrCode.label"/>
</label>
<div class="form-field-item">
<span id="qrCodeHelp" class="text-muted">
<f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_mfa_provider.xlf:setup.qrCode.help"/>
</span>
<span id="qrCodeHelp" class="text-muted">
<f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_mfa_provider.xlf:setup.qrCode.help"/>
</span>
<div class="form-control-wrap mt-1">
<div id="qr-code" class="border float-start">{qrCode -> f:format.raw()}</div>
</div>
......@@ -71,7 +71,7 @@
<f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_mfa_provider.xlf:totpInputHelp"/>
</span>
<div class="form-control-wrap mt-1">
<input type="text" id="totp" name="totp" value="" required="required" class="form-control" maxlength="6" minlength="6" pattern="[0-9]+"/>
<input type="text" id="totp" name="totp" value="" autocomplete="one-time-code" required="required" class="form-control" maxlength="6" minlength="6" pattern="[0-9]+"/>
</div>
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment