From 3c0b154cd2ca152761b2507f8a4105fe0ca98904 Mon Sep 17 00:00:00 2001 From: gumi Date: Tue, 3 Apr 2018 15:29:40 -0400 Subject: add a password length warning --- src/register.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/register.html b/src/register.html index ab03051..6842475 100644 --- a/src/register.html +++ b/src/register.html @@ -189,7 +189,7 @@
- +
@@ -243,6 +243,12 @@ return; } + if (nodes.pwd.value.length < 12 && !window.confirm("Your password is quite short. For better security you should consider using a password at least 12 characters long.\n\nDo you really want to use a weak password?")) { + grecaptcha.reset(); + nodes.pwd.focus(); + return; + } + const req = new Request("/api/account", { method: "POST", mode: "same-origin", -- cgit v1.2.3-70-g09d2