From b22ecae7aaa96df5f0e70a5bea87ee42feaf7d30 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Tue, 2 Oct 2018 12:48:24 -0400 Subject: Revert "RT# 39340 - removed min_selfservice dir and merged into ng_selfservice" This reverts commit 77baa7974ade41e55d85de22e7d7a54273dd442f. --- ng_selfservice/process_login.php | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'ng_selfservice/process_login.php') diff --git a/ng_selfservice/process_login.php b/ng_selfservice/process_login.php index d98281a1a..15b000b14 100644 --- a/ng_selfservice/process_login.php +++ b/ng_selfservice/process_login.php @@ -3,13 +3,6 @@ require('freeside.class.php'); $freeside = new FreesideSelfService(); -$ip = $_SERVER['REMOTE_ADDR']; - -if ($_POST['domain'] == "ip_mac") { - $mac_addr = $freeside->get_mac_address( array('ip' => $ip, ) ); - $_POST['username'] = $mac_addr['mac_address']; -} - $response = $freeside->login( array( 'email' => strtolower($_POST['email']), 'username' => strtolower($_POST['username']), @@ -23,9 +16,9 @@ $error = $response['error']; if ( $error ) { - header('Location:index.php?username='. urlencode($_POST['username']). - '&domain='. urlencode($_POST['domain']). - '&email='. urlencode($_POST['email']). + header('Location:index.php?username='. urlencode($username). + '&domain='. urlencode($domain). + '&email='. urlencode($email). '&error='. urlencode($error) ); die(); @@ -50,7 +43,7 @@ if ( $response['custnum'] || $response['svcnum'] ) { die(); } elseif ( $response['customers'] ) { - //var_dump($response['customers']); +var_dump($response['customers']); ?> -- cgit v1.2.1