Closed (fixed)
Project:
Password Policy
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2015 at 01:29 UTC
Updated:
6 May 2015 at 17:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
aohrvetpv commentedThe purpose of
password_policy.jsin 6.x-1.x is to overrideDrupal.behaviors.passwordand insert translations from the Password Policy module. (There is only a single line difference betweenDrupal.behaviors.passwordinpassword_policy.jsandmodule/user/user.js).This seems to be done only to change the password meter to speak in terms of "Password quality" instead of "Password strength". This is sensible because a password that meets constraints is not necessarily "strong".
7.x-1.x did not seem to port this feature.
password_policy.jsis there but is unused, and is basically the D6 code.This patch accomplishes the same as
password_policy.jsdoes in 6.x-1.x, but by overridingDrupal.settings.passwordinstead of overridingDrupal.behaviors.password. This seems like a simpler implementation, but I am a JavaScript amateur so this is probably not following best practices.Comment #2
aohrvetpv commentedChange "PasswordPolicy" to lower camel "passwordPolicy" per coding standards.
Comment #3
aohrvetpv commentedAccidentally submitted empty patch in #2.
Comment #4
aohrvetpv commentedComment #6
aohrvetpv commented