mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-20 05:34:12 -04:00
fix
This commit is contained in:
1 parent
b1132087b8
commit
3b58da860f
1 file changed
+5
-3
@@ -271,10 +271,12 @@ if ( ZM_OPT_USE_AUTH ) {
|
||||
if ( ZM_AUTH_HASH_LOGINS && empty($user) && !empty($_REQUEST['auth']) ) {
|
||||
$user = getAuthUser($_REQUEST['auth']);
|
||||
} else if (
|
||||
! ( empty($_REQUEST['username']) or empty($_REQUEST['password']) or
|
||||
(defined('ZM_OPT_USE_GOOG_RECAPTCHA') && ZM_OPT_USE_GOOG_RECAPTCHA )
|
||||
! (
|
||||
empty($_REQUEST['username']) or
|
||||
empty($_REQUEST['password']) or
|
||||
(defined('ZM_OPT_USE_GOOG_RECAPTCHA') && ZM_OPT_USE_GOOG_RECAPTCHA)
|
||||
) ) {
|
||||
$ret = validateUser($_REQUEST['username'], $_REQUEST['password');
|
||||
$ret = validateUser($_REQUEST['username'], $_REQUEST['password']);
|
||||
if ( !$ret[0] ) {
|
||||
ZM\Error($ret[1]);
|
||||
unset($user); // unset should be ok here because we aren't in a function
|
||||
|
||||
Reference in new issue
Block a user