Commit e555e240 authored by Christophe Maudoux's avatar Christophe Maudoux

Disable autocompletion in 2FA forms (#1609)

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