fix warnings and move User import up higher to where it needs to be

This commit is contained in:
Isaac Connor committed 2016-06-21 09:09:58 -04:00
1 parent dbdd1ae51e
commit b4aec41d3d
1 file changed
+2 -2
+2 -2
View File
@@ -73,8 +73,8 @@ class AppController extends Controller {
$zmOptAuth = $config['Config']['Value'];
if ( $zmOptAuth=='1' ) {
if ( $_REQUEST['user'] and $_REQUEST['pass'] ) {
$this->loadModel('User');
$this->loadModel('User');
if ( isset($_REQUEST['user']) and isset($_REQUEST['pass']) ) {
$user = $this->User->find('first', array ('conditions' => array (
'User.Username' => $_REQUEST['user'],
'User.Password' => $_REQUEST['pass'],