Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
e555e240
Commit
e555e240
authored
Jan 09, 2019
by
Christophe Maudoux
🐛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable autocompletion in 2FA forms (#1609)
parent
504e892e
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
14 additions
and
14 deletions
+14
-14
lemonldap-ng-portal/site/templates/bootstrap/ext2fcheck.tpl
lemonldap-ng-portal/site/templates/bootstrap/ext2fcheck.tpl
+3
-3
lemonldap-ng-portal/site/templates/bootstrap/totp2fcheck.tpl
lemonldap-ng-portal/site/templates/bootstrap/totp2fcheck.tpl
+3
-3
lemonldap-ng-portal/site/templates/bootstrap/totp2fregister.tpl
...dap-ng-portal/site/templates/bootstrap/totp2fregister.tpl
+1
-1
lemonldap-ng-portal/site/templates/bootstrap/utotp2fcheck.tpl
...nldap-ng-portal/site/templates/bootstrap/utotp2fcheck.tpl
+1
-1
lemonldap-ng-portal/site/templates/bootstrap/yubikey2fregister.tpl
...-ng-portal/site/templates/bootstrap/yubikey2fregister.tpl
+1
-1
lemonldap-ng-portal/site/templates/bootstrap/yubikeyform.tpl
lemonldap-ng-portal/site/templates/bootstrap/yubikeyform.tpl
+1
-1
lemonldap-ng-portal/t/76-2F-Ext-with-BruteForce.t
lemonldap-ng-portal/t/76-2F-Ext-with-BruteForce.t
+2
-2
lemonldap-ng-portal/t/76-2F-Ext-with-GrantSession.t
lemonldap-ng-portal/t/76-2F-Ext-with-GrantSession.t
+1
-1
lemonldap-ng-portal/t/76-2F-Ext-with-HISTORY.t
lemonldap-ng-portal/t/76-2F-Ext-with-HISTORY.t
+1
-1
No files found.
lemonldap-ng-portal/site/templates/bootstrap/ext2fcheck.tpl
View file @
e555e240
...
...
@@ -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>
...
...
lemonldap-ng-portal/site/templates/bootstrap/totp2fcheck.tpl
View file @
e555e240
...
...
@@ -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"
>
...
...
lemonldap-ng-portal/site/templates/bootstrap/totp2fregister.tpl
View file @
e555e240
...
...
@@ -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>
...
...
lemonldap-ng-portal/site/templates/bootstrap/utotp2fcheck.tpl
View file @
e555e240
...
...
@@ -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"
>
...
...
lemonldap-ng-portal/site/templates/bootstrap/yubikey2fregister.tpl
View file @
e555e240
...
...
@@ -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>
...
...
lemonldap-ng-portal/site/templates/bootstrap/yubikeyform.tpl
View file @
e555e240
...
...
@@ -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"
>
...
...
lemonldap-ng-portal/t/76-2F-Ext-with-BruteForce.t
View file @
e555e240
...
...
@@ -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
);
...
...
lemonldap-ng-portal/t/76-2F-Ext-with-GrantSession.t
View file @
e555e240
...
...
@@ -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
);
...
...
lemonldap-ng-portal/t/76-2F-Ext-with-HISTORY.t
View file @
e555e240
...
...
@@ -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
]
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment