[Update] 添加unblock user脚本

pull/1599/head
ibuler 2018-07-26 19:30:37 +08:00
parent 7e65e44a3c
commit 5ce3dd4079
1 changed files with 10 additions and 0 deletions

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