From 84f34bb6431c689d9d725c1476b4b5fffaffbaba Mon Sep 17 00:00:00 2001 From: Aiya <8052675+ll-liang@user.noreply.gitee.com> Date: Thu, 28 Dec 2023 05:51:00 +0000 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=B7=B2=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E8=BF=87=E6=9C=9F=E6=97=B6=E9=97=B4=EF=BC=8C=E6=AD=A4=E5=A4=84?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=BC=93=E5=AD=98=E5=90=8E=E7=BB=AD=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96=EF=BC=8C=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E6=8E=89=E5=88=A0=E9=99=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aiya <8052675+ll-liang@user.noreply.gitee.com> --- .../maxkey/password/onetimepwd/token/RedisOtpTokenStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maxkey-authentications/maxkey-authentication-otp/src/main/java/org/dromara/maxkey/password/onetimepwd/token/RedisOtpTokenStore.java b/maxkey-authentications/maxkey-authentication-otp/src/main/java/org/dromara/maxkey/password/onetimepwd/token/RedisOtpTokenStore.java index 01314374b..ad01c6dc2 100644 --- a/maxkey-authentications/maxkey-authentication-otp/src/main/java/org/dromara/maxkey/password/onetimepwd/token/RedisOtpTokenStore.java +++ b/maxkey-authentications/maxkey-authentication-otp/src/main/java/org/dromara/maxkey/password/onetimepwd/token/RedisOtpTokenStore.java @@ -57,7 +57,7 @@ public class RedisOtpTokenStore extends AbstractOtpTokenStore { RedisConnection conn = connectionFactory.getConnection(); OneTimePassword otp = (OneTimePassword)conn.getObject( PREFIX + userInfo.getUsername() + "_" + type + "_" + token); - conn.delete(PREFIX + userInfo.getUsername() + "_" + type + "_" + token); +// conn.delete(PREFIX + userInfo.getUsername() + "_" + type + "_" + token); conn.close(); if (otp != null) { return true;