Right now, the constraints and reactions run for all policies, even those that are disabled, such as the Example policy that comes bundled with the module. Only those that are enabled should be processed.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | password_policy-do_not_run_disabled_policies-1923794-5.patch | 2.17 KB | erikwebb |
| #3 | 1923794.2-password_policy-disabled.patch | 865 bytes | mrfelton |
| #1 | 1923794-password_policy-disabled.patch | 2.36 KB | mrfelton |
Comments
Comment #1
mrfelton commentedAttached patch adds a new method, enabled_policies(), and uses that when findig the policies that need to be processed.
Comment #2
erikwebb commentedLooks good. Thanks!
http://drupalcode.org/project/password_policy.git/commit/b0af4c7
Comment #3
mrfelton commentedRevised version.
Comment #5
erikwebb commentedSince my commit already went in, this is probably the patch you wanted.
Comment #6
mrfelton commentedExactly
Comment #7
erikwebb commentedhttp://drupalcode.org/project/password_policy.git/commit/bed39ba