From 93077c083f2ba4d245ce0cf728a0afcd38bd6c88 Mon Sep 17 00:00:00 2001 From: Evert Date: Fri, 15 Sep 2017 14:00:48 +0300 Subject: [PATCH] prevent some inputs from autocompleting --- views/donate.pug | 2 +- views/user/password_new.pug | 2 +- views/user/register.pug | 2 +- views/user/totp-check.pug | 2 +- views/user/totp.pug | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/views/donate.pug b/views/donate.pug index c547c64..86d0325 100644 --- a/views/donate.pug +++ b/views/donate.pug @@ -36,7 +36,7 @@ block body label(for="mcinclude") Include Minecraft Username input(id="mcinclude" type="checkbox") .mcuname(style="display: none;") - input(id="mcusername") + input(id="mcusername", autocomplete="off") .buttoncont a.button.donate(name="submit", onclick="$(this).closest('form').submit()") i.fa.fa-fw.fa-paypal diff --git a/views/user/password_new.pug b/views/user/password_new.pug index eed795f..bbc09a7 100644 --- a/views/user/password_new.pug +++ b/views/user/password_new.pug @@ -24,6 +24,6 @@ block body label(for="password") New Password input(type="password", name="password", id="password") label(for="password_repeat") Repeat New Password - input(type="password", name="password_repeat", id="password_repeat") + input(type="password", name="password_repeat", id="password_repeat", autocomplete="off") div#repeatcheck(style="display: none") input(type="submit", value="Change") diff --git a/views/user/register.pug b/views/user/register.pug index 6b62a99..de8779f 100644 --- a/views/user/register.pug +++ b/views/user/register.pug @@ -26,7 +26,7 @@ block body label(for="password") Password input(type="password", name="password", id="password") label(for="password_repeat") Repeat Password - input(type="password", name="password_repeat", id="password_repeat") + input(type="password", name="password_repeat", id="password_repeat", autocomplete="off") div#repeatcheck(style="display: none") if recaptcha script(src='https://www.google.com/recaptcha/api.js') diff --git a/views/user/totp-check.pug b/views/user/totp-check.pug index 1bdc165..5a3e685 100644 --- a/views/user/totp-check.pug +++ b/views/user/totp-check.pug @@ -18,5 +18,5 @@ block body form#loginForm(method="POST", action="") input(type="hidden", name="csrf", value=csrf) label(for="code") Code - input(type="text", name="code", id="code") + input(type="text", name="code", id="code", autocomplete="off") input(type="submit", value="Log in") diff --git a/views/user/totp.pug b/views/user/totp.pug index 474df40..d764769 100644 --- a/views/user/totp.pug +++ b/views/user/totp.pug @@ -19,7 +19,7 @@ block body form#totpForm(method="POST", action="") input(type="hidden", name="csrf", value=csrf) label(for="code") Enter the Code - input(type="text", name="code", id="code") + input(type="text", name="code", id="code", autocomplete="off") input(type="submit", value="Enable Now") .right h3 How to use