X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcontact.pm;h=c462e55f33c9c9d79c4ade1257dca161b6c87999;hb=f4daf7e8c831fe126dc3fd1d6d0db5ee3b46d602;hp=fd3e9d770dd8a4ac171fdf5784d7f5062b27f091;hpb=a2ecb1cf6a6c084c521710f1256da082f70ba9e5;p=freeside.git diff --git a/FS/FS/contact.pm b/FS/FS/contact.pm index fd3e9d770..c462e55f3 100644 --- a/FS/FS/contact.pm +++ b/FS/FS/contact.pm @@ -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 { @@ -879,8 +882,6 @@ sub send_reset_email { #email it - my $conf = new FS::Conf; - my $cust_main = ''; my @cust_contact = grep $_->selfservice_access, $self->cust_contact; $cust_main = $cust_contact[0]->cust_main if scalar(@cust_contact) == 1;