X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=FS%2FFS%2Fcontact.pm;h=ad0de6e3228366369aa80efad1b61e38f8ce445d;hb=208cc650f3e441400d88f738cb4af78809497aa5;hp=4012109a77f295916f4934c1f6b5c7b3a63f50ac;hpb=9967e37ce23ef112fddc2606390ba5a89a51adaa;p=freeside.git diff --git a/FS/FS/contact.pm b/FS/FS/contact.pm index 4012109a7..ad0de6e32 100644 --- a/FS/FS/contact.pm +++ b/FS/FS/contact.pm @@ -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 { @@ -687,8 +690,6 @@ sub send_reset_email { #email it - my $conf = new FS::Conf; - my $cust_main = $self->cust_main or die "no customer"; #reset a password for a prospect contact? someday