bitzesty / devise_zxcvbn

Devise plugin to reject weak passwords using zxcvbn
MIT License
194 stars 38 forks source link

Allow user to define more weak_words #9

Closed saizai closed 8 years ago

saizai commented 9 years ago

In user model, just do this to define custom weak words:

def weak_words
  ['mysitename', self.name, self.username, self.pet_name]
end

(Also, I've local-memoized the self.email & self.weak_words calls for efficiency.)

matthewford commented 9 years ago

Thanks, I'm away for a few weeks but will review this when I get back.

saizai commented 9 years ago

@matthewford Fixed.

matthewford commented 9 years ago

@saizai would it be possible to rebase onto master?

saizai commented 9 years ago

@matthewford Done.

saizai commented 9 years ago

/ping @matthewford