定制 simplygoodwork/craft-pwny 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

simplygoodwork/craft-pwny

最新稳定版本:1.0.2

Composer 安装命令:

composer require simplygoodwork/craft-pwny

包简介

Validate user passwords against the Pwned Passwords API

README 文档

README

Enhance your site's security by ensuring users select stronger passwords than password. The plugin employs the k-Anonymity method to validate passwords against the Pwned Passwords API without compromising user privacy by revealing passwords to an external service.

This plugin was inspired by the Cloudflare blog post Validating Leaked Passwords with k-Anonymity and this one by Troy Hunt creator of the Have I Been Pwnd service.

Error message

Requirements

This plugin requires Craft CMS 5.3.0 or later.

The plugin needs to make a call to the free Have I Been Pwnd API at the address https://api.pwnedpasswords.com/ in case you need to whitelist this on your host.

Installation

To install the plugin, follow these instructions:

composer require "simplygoodwork/craft-pwny:^1.0.0" -w && php craft plugin/install pwny

for DDEV users:

ddev composer require "simplygoodwork/craft-pwny:^1.0.0" -w && ddev craft plugin/install pwny

Settings

You can toggle the service, restrict to just users with CP access and customise the error message.

Settings

If you want to toggle the plugin on/off using environment variables, you could create a config/pwny.php file to override this setting. The example below uses PWNY_ENABLED in .env but defaults to true (on) if the variable can't be found:

<?php

use craft\helpers\App;

return [
	'enabled' => App::env('PWNY_ENABLED') ? App::env('PWNY_ENABLED') : true,
];

Brought to you by Good Work.

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2026-03-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固