[freeside-commits] branch FREESIDE_3_BRANCH updated. b4e2bdc5477a8318da25914c7aedfc5901e3975d
Mark Wells
mark at 420.am
Sat Aug 29 15:14:48 PDT 2015
The branch, FREESIDE_3_BRANCH has been updated
via b4e2bdc5477a8318da25914c7aedfc5901e3975d (commit)
from 829793a9f5e8628a1b51e84b8fc03c2f54e118e7 (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 b4e2bdc5477a8318da25914c7aedfc5901e3975d
Author: Mark Wells <mark at freeside.biz>
Date: Sat Aug 29 13:07:45 2015 -0700
fix password reset emails based on svc_acct email address, fallout from #25533
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index 92c7c1c..087f176 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -2989,7 +2989,7 @@ sub reset_passwd {
my($username, $domain) = split('@', $p->{'email'});
my $svc_domain = qsearchs('svc_domain', { 'domain' => $domain } );
if ( $svc_domain ) {
- $svc_acct = qsearchs('svc_acct', { 'username' => $p->{'username'},
+ $svc_acct = qsearchs('svc_acct', { 'username' => $username,
'domsvc' => $svc_domain->svcnum }
);
if ( $svc_acct ) {
@@ -3074,7 +3074,7 @@ sub reset_passwd {
my $reset_session = {
'svcnum' => $svc_acct->svcnum,
- 'agentnum' =>
+ 'agentnum' => $svc_acct->cust_main->agentnum,
};
my $timeout = '1 hour'; #?
-----------------------------------------------------------------------
Summary of changes:
FS/FS/ClientAPI/MyAccount.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list