summaryrefslogtreecommitdiff
path: root/FS/FS/ClientAPI
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2018-10-02 12:48:56 -0400
committerChristopher Burger <burgerc@freeside.biz>2018-10-03 07:39:33 -0400
commitb9bbcb931c701704f1ab3075c6728c287501afad (patch)
tree0810b091e65be3f7f822827bca295690c6986d4f /FS/FS/ClientAPI
parent12a25a18d4ad44b3881f56ee81cb9917fb3379ee (diff)
Revert "RT# 39340 - configured the minimal selfservice to get mac address from radius account table"
This reverts commit 30fabfe8ce8c9a48fa96c6a50d48b32161b1680f.
Diffstat (limited to 'FS/FS/ClientAPI')
-rw-r--r--FS/FS/ClientAPI/MyAccount.pm30
1 files changed, 2 insertions, 28 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index fe77243..a30dde5 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -184,29 +184,6 @@ sub skin_info {
}
-sub get_mac_address {
- my $p = shift;
-
-## access radius exports acct tables to get mac
- my @part_export = ();
- @part_export = (
- qsearch( 'part_export', { 'exporttype' => 'sqlradius' } ),
- qsearch( 'part_export', { 'exporttype' => 'sqlradius_withdomain' } ),
- qsearch( 'part_export', { 'exporttype' => 'broadband_sqlradius' } ),
- );
-
- my @sessions;
- foreach my $part_export (@part_export) {
- push @sessions, ( @{ $part_export->usage_sessions( {
- 'ip' => $p->{'ip'},
- } ) } );
- }
-
- my $mac = $sessions[0]->{'callingstationid'};
-
- return { 'mac_address' => $mac, };
-}
-
sub login_info {
my $p = shift;
@@ -262,11 +239,8 @@ sub login {
} elsif ( $p->{'domain'} eq 'ip_mac' ) {
- my $mac_address = $p->{'username'};
- $mac_address =~ s/\://g;
-
- my $svc_broadband = qsearchs( 'svc_broadband', { 'mac_addr' => $mac_address } );
- return { error => 'MAC address not found '.$p->{'username'} }
+ my $svc_broadband = qsearchs( 'svc_broadband', { 'mac_addr' => $p->{'username'} } );
+ return { error => 'IP address not found' }
unless $svc_broadband;
$svc_x = $svc_broadband;