Sha256: 89acf9058ff0d68d34949ad978d9138556f31e4ec5c4aa55a285c358c5cfea34
Contents?: true
Size: 449 Bytes
Versions: 5
Compression:
Stored size: 449 Bytes
Contents
require "password_strength/base" require "password_strength/active_record" module PasswordStrength # Test the password strength by applying several rules. # The username is required to match its substring in passwords. # # strength = PasswordStrength.test("johndoe", "mypass") # strength.weak? # #=> true # def self.test(username, password) strength = Base.new(username, password) strength.test strength end end
Version data entries
5 entries across 5 versions & 1 rubygems