!34 缓存已设置过期时间,此处删除缓存后续操作无法获取,注释掉删除代码。

Merge pull request !34 from Aiya/N/A
This commit is contained in:
Meitner 2023-12-28 11:55:14 +00:00 committed by Gitee
commit a5e29f454c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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;