devise-pwned_password icon indicating copy to clipboard operation
devise-pwned_password copied to clipboard

Add global enabled option so we can toggle it on and off for different tests

Open TylerRick opened this issue 4 years ago • 4 comments

Resolves #30

(Also resolves/supersedes #27)

Currently based on #29 but could be rebased.

  • [x] Add tests
  • [x] Update docs

TylerRick avatar Apr 25 '20 02:04 TylerRick

It would be nice if we could simply call it Devise::PwnedPassword.enabled, but using top-level Devise config, Devise.pwned_password_check_enabled, seemed to be the most consistent with what this gem is already doing.

TylerRick avatar Apr 27 '20 16:04 TylerRick

Amazing, I was just looking for this!

I have some specific feature specs and VCR recordings that test that devise-pwned_password is working properly, but I only want to selectively enable it for these tests. The with_pwned_password_check test helper is also super awesome, so thanks for including that!

I will use your fork for now and try it out.

UPDATE: This works perfectly! Thanks for your work!

ndbroadbent avatar May 08 '20 09:05 ndbroadbent

@michaelbanfield Sorry to bother you! But I'm just going through my Gemfile and looking at different forks I'm using, and I'm still using @TylerRick's branch for this PR. I was wondering if it might be possible to merge this and release a new version of the gem?

If you are no longer maintaining the gem, then I'd be happy to take over maintenance and releasing new versions, since my company is using it (https://github.com/docspring).

ndbroadbent avatar Jun 30 '21 02:06 ndbroadbent

Update: We're still using this fork and would be keen to see support for this in the official release. But no worries if not!

ndbroadbent avatar Jun 26 '23 13:06 ndbroadbent