From 3e201f8d48554ab8c4b8132eaa50b5fe7dd1d67e Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 1 Feb 2018 14:37:35 +0000 Subject: Add length/common password checking. --- perllib/FixMyStreet/App/Controller/Auth/Profile.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'perllib/FixMyStreet/App/Controller/Auth/Profile.pm') diff --git a/perllib/FixMyStreet/App/Controller/Auth/Profile.pm b/perllib/FixMyStreet/App/Controller/Auth/Profile.pm index 5e6fe6266..d1fb32c41 100644 --- a/perllib/FixMyStreet/App/Controller/Auth/Profile.pm +++ b/perllib/FixMyStreet/App/Controller/Auth/Profile.pm @@ -53,6 +53,7 @@ sub change_password : Path('/auth/change_password') { my $password_error = !$new && !$confirm ? 'missing' : $new ne $confirm ? 'mismatch' + : !$c->forward('/auth/test_password', [ $new ]) ? 'failed' : ''; if ($password_error) { -- cgit v1.2.3