[freeside-commits] branch FREESIDE_4_BRANCH updated. 225f922a9b48c5179b3fd9b28d9eb442d7e8598d

Mark Wells mark at 420.am
Sat Aug 29 15:14:49 PDT 2015


The branch, FREESIDE_4_BRANCH has been updated
       via  225f922a9b48c5179b3fd9b28d9eb442d7e8598d (commit)
      from  aa46d4f4bcb095da10d65fface67e83abd9cd2e7 (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 225f922a9b48c5179b3fd9b28d9eb442d7e8598d
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 4a10ff2..b25064f 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -3031,7 +3031,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 ) {
@@ -3119,7 +3119,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