From 5220946f4f7f256e692402e747c7beab90a99d2a Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Tue, 29 Oct 2019 15:15:37 +0000 Subject: Record time of password change. --- t/app/controller/auth.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 't/app/controller/auth.t') 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 -- cgit v1.2.3