mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-05 12:23:29 +08:00
优化双重验证
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package org.hswebframework.web.authorization.twofactor.defaults;
|
||||
|
||||
import lombok.Setter;
|
||||
import org.hswebframework.web.authorization.twofactor.TwoFactorToken;
|
||||
import org.hswebframework.web.authorization.twofactor.TwoFactorTokenManager;
|
||||
|
||||
@@ -19,6 +18,7 @@ public class HashMapTwoFactorTokenManager implements TwoFactorTokenManager {
|
||||
private Map<String, WeakReference<TwoFactorTokenInfo>> tokens = new ConcurrentHashMap<>();
|
||||
|
||||
private class TwoFactorTokenInfo implements Serializable {
|
||||
private static final long serialVersionUID = -5246224779564760241L;
|
||||
private volatile long lastRequestTime = System.currentTimeMillis();
|
||||
|
||||
private long timeOut;
|
||||
|
||||
Reference in New Issue
Block a user