diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-10-29 15:15:37 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-11-04 17:10:23 +0000 |
commit | 5220946f4f7f256e692402e747c7beab90a99d2a (patch) | |
tree | 1fc4bba4ba85ae8f3a1560b79ec1dbf18eadd29d /perllib/FixMyStreet/App/Controller/Auth/Profile.pm | |
parent | f93bc85184077506c555e444c55abbeb1976f03e (diff) |
Record time of password change.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Auth/Profile.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Auth/Profile.pm | 3 |
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 |