summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-02-26 10:12:56 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-02-26 10:12:56 -0300
commitae52d165da3aa89188b3806643cf3d5b4b207bd7 (patch)
tree1bd00d76e4bf492756a6c1ef87c00436ca75ec5a /etc/inc/auth.inc
parentae3b187af6527179034e5ecfa342a833559041cc (diff)
downloadpfsense-ae52d165da3aa89188b3806643cf3d5b4b207bd7.zip
pfsense-ae52d165da3aa89188b3806643cf3d5b4b207bd7.tar.gz
Fix indent and remove some unecessary ()
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r--etc/inc/auth.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index a19a20c..2cb2ff1 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -73,11 +73,11 @@ if (function_exists("display_error_form") && !isset($config['system']['webgui'][
$http_host = $http_host[0];
}
if (is_ipaddr($http_host) or $_SERVER['SERVER_ADDR'] == "127.0.0.1" or
- strcasecmp($http_host, "localhost") == 0 or $_SERVER['SERVER_ADDR'] == "::1") {
+ strcasecmp($http_host, "localhost") == 0 or $_SERVER['SERVER_ADDR'] == "::1") {
$found_host = true;
}
if (strcasecmp($http_host, $config['system']['hostname'] . "." . $config['system']['domain']) == 0 or
- strcasecmp($http_host, $config['system']['hostname']) == 0) {
+ strcasecmp($http_host, $config['system']['hostname']) == 0) {
$found_host = true;
}
@@ -134,8 +134,8 @@ if (function_exists("display_error_form") && !isset($config['system']['webgui'][
$referrer_host = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST);
$referrer_host = str_replace(array("[", "]"), "", $referrer_host);
if ($referrer_host) {
- if (strcasecmp($referrer_host, $config['system']['hostname'] . "." . $config['system']['domain']) == 0
- || strcasecmp($referrer_host, $config['system']['hostname']) == 0) {
+ if (strcasecmp($referrer_host, $config['system']['hostname'] . "." . $config['system']['domain']) == 0 ||
+ strcasecmp($referrer_host, $config['system']['hostname']) == 0) {
$found_host = true;
}
@@ -1492,7 +1492,7 @@ function session_auth() {
if (isset($_POST['login']) && !empty($_POST['usernamefld']) && !empty($_POST['passwordfld'])) {
$authcfg = auth_get_authserver($config['system']['webgui']['authmode']);
if (authenticate_user($_POST['usernamefld'], $_POST['passwordfld'], $authcfg) ||
- authenticate_user($_POST['usernamefld'], $_POST['passwordfld'])) {
+ authenticate_user($_POST['usernamefld'], $_POST['passwordfld'])) {
// Generate a new id to avoid session fixation
session_regenerate_id();
$_SESSION['Logged_In'] = "True";
OpenPOWER on IntegriCloud