aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Auth/Profile.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-02-01 14:37:35 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-02-06 16:53:25 +0000
commit3e201f8d48554ab8c4b8132eaa50b5fe7dd1d67e (patch)
tree7b943b171bfbcdd74444d5a938291c69218ea027 /perllib/FixMyStreet/App/Controller/Auth/Profile.pm
parent35445b8cc7ae02acdfbfc3e2e9da15b022736906 (diff)
Add length/common password checking.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Auth/Profile.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Auth/Profile.pm1
1 files changed, 1 insertions, 0 deletions
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) {