addDescription( 'Script to update TOTP Scratch Tokens to an array' ); $this->requireExtension( 'OATHAuth' ); } public function execute() { $database = OATHAuthServices::getInstance()->getDatabase(); $dbw = $database->getDB( DB_PRIMARY ); // @phan-suppress-next-line PhanTypeMismatchArgumentSuperType if ( !UpdateTables::switchTOTPScratchTokensToArray( $dbw ) ) { $this->fatalError( "Failed to update TOTP Scratch Tokens.\n" ); } $this->output( "Done.\n" ); } } $maintClass = UpdateTOTPScratchTokensToArray::class; require_once RUN_MAINTENANCE_IF_MAIN;