The redis account of some applications is locked and unlocked

#View docker redis id

docker ps

# enter redis

docker  exec -it  redis_id /bin/bash

#Enter redis-cli

redis-cli

#redis validation

auth password

# View account information

keys user:*

like:

127.0.0.1:6379> keys user:*
1) "user:email:limit:a7051f9c9fc396bdcad400e6e335d271"
2) "user:email:limit:7672724349c116888fec9e071d340054"
3) "user:email:limit:b0ca91a460316040fa509d6af1db0365"
4) "user:email:limit:b5a575b247ad44ced63591150f7c6a96"
5) "user:email:limit:64bbb6802dfddc754ade3ab366e35c90"

#Delete account restrictions

del user:email:limit:a7051f9c9fc396bdcad400e6e335d271


#127.0.0.1:6379> get user:info:id:1

#Second type

get user:info:id:1 //The value after id is the account ID, which is generally 1 for the administrator

del user:info:email:account

#Account is locked general time limit

For example: if you enter 5 wrong times, the account will be locked for 15 minutes; if the number of wrong input reaches 10 times, the account will be locked for 24 hours; if the number of input reaches 15 times, the account will be locked for 48 hours

Guess you like

Origin blog.csdn.net/qq_30381077/article/details/126966946