aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Auth/Profile.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-11-05 10:24:27 +0000
committerMatthew Somerville <matthew@mysociety.org>2019-11-05 10:24:27 +0000
commit78f2bbaf9291572a86816e2ba05ec8972b0fd393 (patch)
tree1b77b3cadc481042891a68d9c70d090a80d480d2 /perllib/FixMyStreet/App/Controller/Auth/Profile.pm
parent0c69d1b65c0060fc28331d15f63e28b6b3074f48 (diff)
parent1a4e43acee3614b6f960fed4325a480f41692daa (diff)
Merge branch 'password-expiry'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Auth/Profile.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Auth/Profile.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Auth/Profile.pm b/perllib/FixMyStreet/App/Controller/Auth/Profile.pm
index 91ffac205..a1bbfc570 100644
--- a/perllib/FixMyStreet/App/Controller/Auth/Profile.pm
+++ b/perllib/FixMyStreet/App/Controller/Auth/Profile.pm
@@ -74,7 +74,8 @@ sub change_password : Path('/auth/change_password') {
if ($c->user->password) {
# we should have a usable password - save it to the user
- $c->user->obj->update( { password => $new } );
+ $c->user->obj->password($new);
+ $c->user->obj->update;
$c->stash->{password_changed} = 1;
} else {
# Set up arguments for code sign in