mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
Check that common passwords list is greater than 0
This commit is contained in:
parent
8a1593bfd2
commit
47e1d00f96
2 changed files with 15 additions and 3 deletions
|
@ -30,7 +30,7 @@ class CommonPasswords
|
|||
|
||||
def self.password_list
|
||||
@mutex.synchronize do
|
||||
load_passwords unless redis.exists(LIST_KEY)
|
||||
load_passwords unless redis.scard(LIST_KEY) > 0
|
||||
end
|
||||
RedisPasswordList.new
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue