Commit e555e240 authored by Christophe Maudoux's avatar Christophe Maudoux

Disable autocompletion in 2FA forms (#1609)

parent 504e892e
......@@ -8,12 +8,12 @@
<form action="<TMPL_IF "TARGET"><TMPL_VAR "TARGET"><TMPL_ELSE>/ext2fcheck</TMPL_IF>" method="post" class="password" role="form">
<div class="form">
<input type="hidden" id="token" name="token" value="<TMPL_VAR NAME="TOKEN">">
<input type="hidden" id="checkLogins" name="checkLogins" value="<TMPL_VAR NAME="CHECKLOGINS">">
<input type="hidden" id="token" name="token" value="<TMPL_VAR NAME="TOKEN">" />
<input type="hidden" id="checkLogins" name="checkLogins" value="<TMPL_VAR NAME="CHECKLOGINS">" />
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-lock"></i> </span>
<input name="code" value="" class="form-control" id="extcode" trplaceholder="code">
<input name="code" value="" class="form-control" id="extcode" trplaceholder="code" autocomplete="off" />
</div>
</div>
</div>
......
......@@ -8,13 +8,13 @@
<form action="/totp2fcheck" method="post" class="password" role="form">
<div class="form">
<input type="hidden" id="token" name="token" value="<TMPL_VAR NAME="TOKEN">">
<input type="hidden" id="checkLogins" name="checkLogins" value="<TMPL_VAR NAME="CHECKLOGINS">">
<input type="hidden" id="token" name="token" value="<TMPL_VAR NAME="TOKEN">" />
<input type="hidden" id="checkLogins" name="checkLogins" value="<TMPL_VAR NAME="CHECKLOGINS">" />
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-lock"></i> </span>
</div>
<input name="code" value="" class="form-control" id="extcode" trplaceholder="code">
<input name="code" value="" class="form-control" id="extcode" trplaceholder="code" autocomplete="off" />
</div>
</div>
<div class="buttons mb-3">
......
......@@ -22,7 +22,7 @@
</div>
<div class="form-group">
<label for="code"><span trspan="code">Code</span></label>
<input id="code" class="form-control" name="code" type="number" />
<input id="code" class="form-control" name="code" type="number" autocomplete="off" />
</div>
</div>
</div>
......
......@@ -49,7 +49,7 @@
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-lock"></i></span>
</div>
<input name="code" value="" class="form-control" id="extcode" trplaceholder="code" />
<input name="code" value="" class="form-control" id="extcode" trplaceholder="code" autocomplete="off" />
</div>
</div>
<div class="buttons mb-3">
......
......@@ -20,7 +20,7 @@
</div>
<div class="form-group">
<label for="otp"><span trspan="id">Id</span></label>
<input type="text" class="form-control" id="otp" name="otp" trplaceholder="Id" />
<input type="text" class="form-control" id="otp" name="otp" trplaceholder="Id" autocomplete="off" />
</div>
<input class="d-none" type="submit" value="Submit" />
</div>
......
......@@ -3,7 +3,7 @@
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-chevron-right"></i></span>
</div>
<input name="yubikeyOTP" type="text" class="form-control" trplaceholder="enterYubikey" aria-required="true"/>
<input name="yubikeyOTP" type="text" class="form-control" trplaceholder="enterYubikey" aria-required="true" autocomplete="off" />
</div>
<TMPL_INCLUDE NAME="checklogins.tpl">
......
......@@ -96,7 +96,7 @@ my ( $host, $url, $query ) =
ok(
$res->[2]->[0] =~
qr%<input name="code" value="" class="form-control" id="extcode" trplaceholder="code">%,
qr%<input name="code" value="" class="form-control" id="extcode" trplaceholder="code" autocomplete="off" />%,
'Found EXTCODE input'
) or print STDERR Dumper( $res->[2]->[0] );
count(1);
......@@ -136,7 +136,7 @@ count(1);
ok(
$res->[2]->[0] =~
qr%<input name="code" value="" class="form-control" id="extcode" trplaceholder="code">%,
qr%<input name="code" value="" class="form-control" id="extcode" trplaceholder="code" autocomplete="off" />%,
'Found EXTCODE input'
) or print STDERR Dumper( $res->[2]->[0] );
count(1);
......
......@@ -42,7 +42,7 @@ my ( $host, $url, $query ) =
ok(
$res->[2]->[0] =~
qr%<input name="code" value="" class="form-control" id="extcode" trplaceholder="code">%,
qr%<input name="code" value="" class="form-control" id="extcode" trplaceholder="code" autocomplete="off" />%,
'Found EXTCODE input'
) or print STDERR Dumper( $res->[2]->[0] );
count(1);
......
......@@ -82,7 +82,7 @@ ok(
ok(
$res->[2]->[0] =~
qr%<input name="code" value="" class="form-control" id="extcode" trplaceholder="code">%,
qr%<input name="code" value="" class="form-control" id="extcode" trplaceholder="code" autocomplete="off" />%,
'Found EXTCODE input'
) or print STDERR Dumper( $res->[2]->[0] );
......
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