From b09a71d0e2a135ee28735e1eff673d910c685872 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 30 Jan 2019 16:06:16 -0500 Subject: [PATCH] code style --- web/includes/auth.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/includes/auth.php b/web/includes/auth.php index e365ecef3..45e6ad267 100644 --- a/web/includes/auth.php +++ b/web/includes/auth.php @@ -203,14 +203,12 @@ function canEdit($area, $mid=false) { return ( $user[$area] == 'Edit' && ( !$mid || visibleMonitor($mid) )); } - if ( ZM_OPT_USE_AUTH ) { if ( ZM_AUTH_HASH_LOGINS && empty($user) && ! empty($_REQUEST['auth']) ) { if ( $authUser = getAuthUser($_REQUEST['auth']) ) { userLogin($authUser['Username'], $authUser['Password'], true); } - } - else if ( isset($_REQUEST['username']) and isset($_REQUEST['password']) ) { + } else if ( isset($_REQUEST['username']) and isset($_REQUEST['password']) ) { userLogin($_REQUEST['username'], $_REQUEST['password'], false); } if ( !empty($user) ) {