53 $res = $dbr->newSelectQueryBuilder()
54 ->from(
'user_properties' )
56 ->where( [
'up_property' =>
'fancysig' ] )
57 ->andWhere( $dbr->expr(
'up_user',
'>', $maxUserId ) )
58 ->orderBy( [
'up_property',
'up_user' ] )
60 ->caller( __METHOD__ )
63 foreach ( $res as $row ) {
65 $user = $userFactory->getUserIdentityByUserId( $row->up_user );
69 $signature = $userOptions->getOption( $user,
'nickname' );
70 $useFancySig = $userOptions->getBoolOption( $user,
'fancysig' );
71 if ( $useFancySig && $signature !==
'' ) {
73 $validator = $signatureValidatorFactory->newSignatureValidator( $user,
null, $parserOpts );
74 $signatureErrors = $validator->validateSignature( $signature );
75 if ( $signatureErrors ) {
77 $this->
output( $user->getName() .
"\n" );
81 $maxUserId = $row->up_user;
83 }
while ( $res->numRows() );
85 $this->
output(
"-- $count invalid signatures --\n" );