mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-02-21 06:22:23 +00:00
[Update] 添加unblock user脚本
This commit is contained in:
10
utils/unblock_all_user.sh
Normal file
10
utils/unblock_all_user.sh
Normal 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
|
||||
Reference in New Issue
Block a user