Make a config for the number of hours a self-service password reset is valid
[freeside.git] / FS / FS / contact.pm
index 4012109..148fa61 100644 (file)
@@ -675,7 +675,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 {