fnando/password_strength — Issue #3: Partial match of usernames
Author: barmstrong
Created: 2012-01-26 23:14:10+00:00
State: open

I noticed that an exact username match lowers the score, but not a partial match.

ree-1.8.7-2011.03 :022 > PasswordStrength.test("iloveyou2", "iloveyou2")
=> #
ree-1.8.7-2011.03 :023 > PasswordStrength.test("iloveyou", "iloveyou2")
=> #
ree-1.8.7-2011.03 :024 >

Would it make sense to lower the score with a partial match? Maybe based on how many letters remain after gsubing out the partial match?