PHPackages                             codeq/passwordprotectedcontent - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. codeq/passwordprotectedcontent

ActiveNeos-package

codeq/passwordprotectedcontent
==============================

Password protect any document and content NodeType

v1.4.0(3y ago)14.2k↑50%1MIT

Since Aug 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/code-q-web-factory/neos-passwordprotectedcontent)[ Packagist](https://packagist.org/packages/codeq/passwordprotectedcontent)[ RSS](/packages/codeq-passwordprotectedcontent/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/a60e9ebb7d18bd666ba3065512a196451cac7dcf04b1fc48bfa922f716764545/68747470733a2f2f706f7365722e707567782e6f72672f636f6465712f70617373776f726470726f746563746564636f6e74656e742f762f737461626c65)](https://packagist.org/packages/codeq/passwordprotectedcontent)[![License](https://camo.githubusercontent.com/9800687b47fafb1618b863f28cd39584f70e4e5685a554ea3b21cc34ce01c47e/68747470733a2f2f706f7365722e707567782e6f72672f636f6465712f70617373776f726470726f746563746564636f6e74656e742f6c6963656e7365)](LICENSE)

Password Protect Content for Neos CMS
=====================================

[](#password-protect-content-for-neos-cms)

This package allows editors to password protect any document and content NodeType, where the mixin is included.

**Attention:**This should not be used for content that needs to be strongly protected. We do store the unencrypted passwords in the content repository, so that multiple editors can see and change the password. The password is not personalized and therefore can easily be shared. Also we do not have a brute-force protection in the package.

Limitations:

- No brute-force protection
- No session, where the allowed pages is stored

Installation
------------

[](#installation)

CodeQ.HtmlWidget is available via packagist. `"codeq/passwordprotectedcontent" : "~1.0"` to the require section of the composer.json or run:

```
composer require codeq/passwordprotectedcontent
```

We use semantic-versioning so every breaking change will increase the major-version number.

Usage
-----

[](#usage)

1. Add the mixin `'CodeQ.PasswordProtectedContent:Mixin.Password'` to any NodeType to allow editors to configure a password.
2. Add the following process function to protect the content `@process.protect = CodeQ.PasswordProtectedContent:Helper.ProtectContent`The process function is not added automatically, because you probably want to render headers and footers of your page. No you can specifically define which content should be rendered and which not.
3. You need to configure your Fusion object to be cached dynamic based on the post parameter like this: ```
    @cache {
    	mode = 'dynamic'
    	entryIdentifier {
    		node = ${node}
    	}
    	context {
    		1 = 'node'
    		2 = 'documentNode'
    		3 = 'site'
    	}
    	// cache the initial request ot see the form and don't cache the password-check result
    	entryDiscriminator = ${request.httpRequest.methodSafe ? 'static' : false}
    }

    ```

### Usage with ContentCollection

[](#usage-with-contentcollection)

To replace the ContentCollection with the password protected form, you will need to get the password from the documentNode and not the ContentCollection node, also you probably do not want to use a separate cache. So apply above @cache to your DocumentNode rendering and render the ContentCollection like this:

```
main = Neos.Neos:ContentCollection {
	nodePath = 'main'
	@process.protect = CodeQ.PasswordProtectedContent:Helper.ProtectContent {
		configuredPassword = ${q(documentNode).property('passwordProtectedContentPassword')}
	}
	@cache {
		mode = 'embed'
	}
}

```

### Replacing the default form rendering

[](#replacing-the-default-form-rendering)

You can also replace the form rendering with your own by overriding the prototype:

```
prototype(CodeQ.PasswordProtectedContent:Component.PasswordForm) {
	renderer = 'YOUR CODE'
}

```

License
-------

[](#license)

Licensed under MIT, see [LICENSE](LICENSE)

Contribution
------------

[](#contribution)

We will gladly accept contributions. Please send us pull requests.

*The development and the public-releases of this package is generously sponsored [Code Q Web Factory](http://codeq.at).*

[![Code Q](codeq.png)](http://codeq.at)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 73.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~318 days

Total

5

Last Release

1197d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c898f86932821ebd9add02d4f01864bd4804e1a620083fbc5951af0bb3e9c850?d=identicon)[codeq](/maintainers/codeq)

---

Top Contributors

[![rolandschuetz](https://avatars.githubusercontent.com/u/735982?v=4)](https://github.com/rolandschuetz "rolandschuetz (11 commits)")[![paavo](https://avatars.githubusercontent.com/u/1118783?v=4)](https://github.com/paavo "paavo (3 commits)")[![jonnitto](https://avatars.githubusercontent.com/u/4510166?v=4)](https://github.com/jonnitto "jonnitto (1 commits)")

---

Tags

passwordflowNeosFUSION

### Embed Badge

![Health badge](/badges/codeq-passwordprotectedcontent/health.svg)

```
[![Health](https://phpackages.com/badges/codeq-passwordprotectedcontent/health.svg)](https://phpackages.com/packages/codeq-passwordprotectedcontent)
```

###  Alternatives

[carbon/includeassets

Include your assets (css, js) in an easy way into Neos

14228.6k10](/packages/carbon-includeassets)[shel/neos-colorpicker

A plugin for Neos CMS which provides a colorpicker editor

1494.4k6](/packages/shel-neos-colorpicker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
