mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-22 06:24:24 -04:00
fix warnings and move User import up higher to where it needs to be
This commit is contained in:
1 parent
dbdd1ae51e
commit
b4aec41d3d
1 file changed
+2
-2
@@ -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'],
|
||||
|
||||
Reference in new issue
Block a user