Version 3.1.0
February 18, 2024
- Added support for Craft CMS 5.0.0-beta.2 or newer.
Version 3.0.0
January 24, 2024
Critical
The
key
argument on the protect method is now mandatory,craft.templateGuard.protect('password', 'secret-page-key')
. Previously, if the key argument was omitted, the system would default to the current URL. This resulted in the potential bypassing of themaxLoginAttempts
rule.
- Make the
key
argument required. - Improve documentation.
- Add log out support.
Version 2.1.0
October 7, 2022
- Added more settings:
cookieLifetimeInSeconds
,maxLoginAttempts
andmaxLoginAttemptsPeriodInSeconds
.
Version 2.0.0
October 4, 2022
null
Version 2.0.0-beta.1
March 31, 2022
- Template Guard now requires Craft CMS 4.0.0-beta.3 or newer.
- Added PHPStan.
Version 1.1.1
March 31, 2022
- Added
X-Robots-Tag: noindex
header to login route.
Version 1.1.0
March 29, 2022
[!TIP] You can now provide an array of passwords
{% do craft.templateGuard.protect(['passwords1', 'passwords2']) %}
. Any of the passwords provided in the array can be used to log in.
- Added support for multiple passwords on one page.
- Added tests.
Version 1.0.0
July 5, 2021
- Initial release.