aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-11-05 10:26:16 +0000
committerDave Arter <davea@mysociety.org>2019-12-09 12:48:13 +0000
commit25a690e3a013db3143ce81a79f107b57dfb92ed9 (patch)
tree246bad58983608f417c04c0560e27ae772dff0ae
parentc711bedccb53bd06562f7407f3b9c342d3baf054 (diff)
[TfL] Passwords expire after one year.
-rw-r--r--perllib/FixMyStreet/Cobrand/TfL.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/TfL.pm b/perllib/FixMyStreet/Cobrand/TfL.pm
index 6f5cec730..150ae6ea3 100644
--- a/perllib/FixMyStreet/Cobrand/TfL.pm
+++ b/perllib/FixMyStreet/Cobrand/TfL.pm
@@ -85,6 +85,12 @@ sub report_sent_confirmation_email { 'id' }
sub report_age { '6 weeks' }
+sub password_expiry {
+ return if FixMyStreet->test_mode;
+ # uncoverable statement
+ 86400 * 365
+}
+
sub pin_colour {
my ( $self, $p, $context ) = @_;
return 'green' if $p->is_closed;