2
0
Fork 0
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:
Neil Lalonde 2013-12-30 14:25:50 -05:00
parent 8a1593bfd2
commit 47e1d00f96
2 changed files with 15 additions and 3 deletions

View file

@ -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