[Update] 添加unblock user脚本

This commit is contained in:
ibuler
2018-07-26 19:30:37 +08:00
parent 7e65e44a3c
commit 5ce3dd4079

10
utils/unblock_all_user.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
#
python ../apps/manage.py shell << EOF
from django.core.cache import cache
cache.delete_pattern('_LOGIN_BLOCK_*')
cache.delete_pattern('_LOGIN_LIMIT_*')
EOF