[freeside-commits] branch FREESIDE_3_BRANCH updated. 9813252ec987e72242efa564c7a927b111f9222a
Ivan
ivan at 420.am
Tue Dec 6 16:14:06 PST 2016
The branch, FREESIDE_3_BRANCH has been updated
via 9813252ec987e72242efa564c7a927b111f9222a (commit)
from 7e7c9fa26899460bfe156e3e2037dc32b0496767 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9813252ec987e72242efa564c7a927b111f9222a
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Dec 6 16:14:05 2016 -0800
Make a config for the number of hours a self-service password reset is valid
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index 0d45ace..5cd4356 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -3104,6 +3104,13 @@ and customer address. Include units.',
},
{
+ 'key' => 'selfservice-password_reset_hours',
+ 'section' => 'self-service',
+ 'description' => 'Numbers of hours an email password reset is valid. Defaults to 24.',
+ 'type' => 'text',
+ },
+
+ {
'key' => 'selfservice-password_reset_msgnum',
'section' => 'self-service',
'description' => 'Template to use for password reset emails.',
diff --git a/FS/FS/contact.pm b/FS/FS/contact.pm
index 4012109..148fa61 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 {
-----------------------------------------------------------------------
Summary of changes:
FS/FS/Conf.pm | 7 +++++++
FS/FS/contact.pm | 5 ++++-
2 files changed, 11 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list