Wrapped user check in OPT_AUTH check.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1241 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
8154e21e58
commit
8559d199bd
|
@ -132,6 +132,8 @@ int main( int argc, const char *argv[] )
|
|||
}
|
||||
}
|
||||
|
||||
if ( (bool)config.Item( ZM_OPT_USE_AUTH ) )
|
||||
{
|
||||
User *user = 0;
|
||||
if ( *username && *password )
|
||||
{
|
||||
|
@ -147,6 +149,7 @@ int main( int argc, const char *argv[] )
|
|||
return( -1 );
|
||||
}
|
||||
ValidateAccess( user, id );
|
||||
}
|
||||
|
||||
setbuf( stdout, 0 );
|
||||
if ( nph )
|
||||
|
|
Loading…
Reference in New Issue