mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Use 10k most common passwords instead of 5k
This commit is contained in:
parent
ce381860dc
commit
014bfc0512
3 changed files with 4 additions and 4 deletions
|
@ -41,7 +41,7 @@ class CommonPasswords
|
|||
|
||||
def self.load_passwords
|
||||
passwords = File.readlines(PASSWORD_FILE)
|
||||
passwords[0,5000].map!(&:chomp).each do |pwd|
|
||||
passwords.map!(&:chomp).each do |pwd|
|
||||
# slower, but a tad more compatible
|
||||
redis.sadd LIST_KEY, pwd
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue