security: stop non-login query.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>