aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/auth.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-10-29 15:15:37 +0000
committerMatthew Somerville <matthew@mysociety.org>2019-11-04 17:10:23 +0000
commit5220946f4f7f256e692402e747c7beab90a99d2a (patch)
tree1fc4bba4ba85ae8f3a1560b79ec1dbf18eadd29d /t/app/controller/auth.t
parentf93bc85184077506c555e444c55abbeb1976f03e (diff)
Record time of password change.
Diffstat (limited to 't/app/controller/auth.t')
-rw-r--r--t/app/controller/auth.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/app/controller/auth.t b/t/app/controller/auth.t
index cd72ab550..899b64198 100644
--- a/t/app/controller/auth.t
+++ b/t/app/controller/auth.t
@@ -95,8 +95,10 @@ $mech->not_logged_in_ok;
# visit the confirm link and check user is confirmed
$mech->get_ok($link);
- ok get_user(), "user created";
+ my $user = get_user();
+ ok $user, "user created";
is $mech->uri->path, '/my', "redirected to the 'my' section of site";
+ ok $user->get_extra_metadata('last_password_change'), 'password change set';
$mech->logged_in_ok;
# logout