dev add reset password
Test Workflow / test (push) Successful in 10s

This commit is contained in:
vladp
2026-02-17 20:17:34 +07:00
parent 9f67f0c06d
commit ac11de2abb
15 changed files with 534 additions and 14 deletions
@@ -20,5 +20,5 @@ public interface AuthTokenRepository extends JpaRepository<AuthToken, Long> {
nativeQuery = true)
Long findUserIdByToken(String token);
Optional<AuthToken> findByUserIdAndIsActive(Long userId, boolean isActive);
Optional<AuthToken> findByUserId(Long userId);
List<AuthToken> findByUserId(Long userId);
}
@@ -0,0 +1,16 @@
package ru.soune.nocopy.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import ru.soune.nocopy.entity.user.UserNotActive;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Optional;
@Repository
public interface UserNotActiveRepository extends JpaRepository<UserNotActive, Long> {
Optional<UserNotActive> findByUserId(Long userId);
List<UserNotActive> findByBlockedUntilBefore(LocalDateTime now);
}