ログインロック
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
package com.example.demo.controller;
|
package com.example.demo.controller;
|
||||||
|
|
||||||
import jakarta.servlet.http.HttpSession;
|
import jakarta.servlet.http.HttpSession;
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public class LoginAttemptService {
|
|||||||
|
|
||||||
// ロック中なら何もしない
|
// ロック中なら何もしない
|
||||||
if (current != null && current.lockedUntil != null
|
if (current != null && current.lockedUntil != null
|
||||||
&& now.isBefore(current.lockedUntil)) {
|
&& now.isBefore(current.lockedUntil)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user