This commit is contained in:
@@ -28,4 +28,8 @@ public class EmailVerificationToken {
|
||||
|
||||
@Column(name = "created_at", nullable = false)
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
public boolean isExpired() {
|
||||
return LocalDateTime.now().isAfter(expiresAt);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user