Make a config for the number of hours a self-service password reset is valid
[freeside.git] / FS / FS / contact.pm
index fd3e9d7..1c456e7 100644 (file)
@@ -867,7 +867,10 @@ sub send_reset_email {
     'svcnum'     => $opt{'svcnum'},
   };
 
-  my $timeout = '24 hours'; #?
+  
+  my $conf = new FS::Conf;
+  my $timeout =
+    ($conf->config('selfservice-password_reset_hours') || 24 ). ' hours';
 
   my $reset_session_id;
   do {