mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-07 17:38:32 +08:00
!34 缓存已设置过期时间,此处删除缓存后续操作无法获取,注释掉删除代码。
Merge pull request !34 from Aiya/N/A
This commit is contained in:
commit
a5e29f454c
@ -57,7 +57,7 @@ public class RedisOtpTokenStore extends AbstractOtpTokenStore {
|
|||||||
RedisConnection conn = connectionFactory.getConnection();
|
RedisConnection conn = connectionFactory.getConnection();
|
||||||
OneTimePassword otp = (OneTimePassword)conn.getObject(
|
OneTimePassword otp = (OneTimePassword)conn.getObject(
|
||||||
PREFIX + userInfo.getUsername() + "_" + type + "_" + token);
|
PREFIX + userInfo.getUsername() + "_" + type + "_" + token);
|
||||||
conn.delete(PREFIX + userInfo.getUsername() + "_" + type + "_" + token);
|
// conn.delete(PREFIX + userInfo.getUsername() + "_" + type + "_" + token);
|
||||||
conn.close();
|
conn.close();
|
||||||
if (otp != null) {
|
if (otp != null) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user