diff options
author | Christopher Burger <burgerc@freeside.biz> | 2018-10-02 14:38:38 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2018-10-02 14:38:38 -0400 |
commit | 529ec19487d625e011fd899da3d88af63c9668ca (patch) | |
tree | d9af30916690626495f43af131ae3778bbbb564b /ng_selfservice/process_login.php | |
parent | 37f031964f85869839da8145f3179141a2933843 (diff) |
Revert "RT# 39340 - removed min_selfservice dir and merged into ng_selfservice"
This reverts commit f4ad9107585d16317bb15bf3223fe8b8eeeeb82c.
Diffstat (limited to 'ng_selfservice/process_login.php')
-rw-r--r-- | ng_selfservice/process_login.php | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/ng_selfservice/process_login.php b/ng_selfservice/process_login.php index 22e2c7169..4212a261a 100644 --- a/ng_selfservice/process_login.php +++ b/ng_selfservice/process_login.php @@ -3,14 +3,7 @@ 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( +$response = $freeside->login( array( 'email' => strtolower($_POST['email']), 'username' => strtolower($_POST['username']), 'domain' => strtolower($_POST['domain']), @@ -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(); @@ -43,7 +36,7 @@ error_log("[login] logged into freeside with session_id=$session_id, setting coo setcookie('session_id', $session_id); -header("Location:main.php"); +header("Location:main.php") #die(); -?>
\ No newline at end of file +?> |