mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
update common password checker for 10 char+
This commit is contained in:
parent
f3c868e7bb
commit
57c518eee1
2344
lib/common_passwords/10-char-common-passwords.txt
Normal file
2344
lib/common_passwords/10-char-common-passwords.txt
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,7 @@
|
|||||||
# CommonPasswords will check a given password against a list of the most commonly used passwords.
|
# CommonPasswords will check a given password against a list of the most commonly used passwords.
|
||||||
# The list comes from https://xato.net/passwords/more-top-worst-passwords/#.UrR1AHmpxs4
|
# The list comes from https://github.com/danielmiessler/SecLists/tree/master/Passwords
|
||||||
|
# specifically the list of 10 million passwords, top 100k, filtered by length
|
||||||
|
#
|
||||||
# The list is stored in Redis at a key that is shared by all sites in a multisite config.
|
# The list is stored in Redis at a key that is shared by all sites in a multisite config.
|
||||||
#
|
#
|
||||||
# If the password file is changed, you need to add a migration that deletes the list from redis
|
# If the password file is changed, you need to add a migration that deletes the list from redis
|
||||||
@ -9,7 +11,7 @@
|
|||||||
|
|
||||||
class CommonPasswords
|
class CommonPasswords
|
||||||
|
|
||||||
PASSWORD_FILE = File.join(Rails.root, 'lib', 'common_passwords', 'long-common-passwords.txt')
|
PASSWORD_FILE = File.join(Rails.root, 'lib', 'common_passwords', '10-char-common-passwords.txt')
|
||||||
LIST_KEY = 'discourse-common-passwords'
|
LIST_KEY = 'discourse-common-passwords'
|
||||||
|
|
||||||
@mutex = Mutex.new
|
@mutex = Mutex.new
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user