sign-up + forgot-password + rester-pwd non complet

This commit is contained in:
Blandine Bajard 2022-01-20 17:57:00 +01:00
parent 90498a2cd1
commit 63e8f73f4e
5 changed files with 71 additions and 30 deletions

View file

@ -1,9 +1,13 @@
package fr.organizee.repository;
import fr.organizee.model.Contact;
import fr.organizee.model.Membre;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Optional;
@Repository
@ -12,7 +16,12 @@ public interface MembreRepository extends JpaRepository<Membre, Integer> {
Optional<Membre> findByEmail(String email);
@Query(value = "select * from membre where email = :email", nativeQuery = true)
Membre chercheEmail(@Param("email") String email);
boolean existsByEmail(String email);
void deleteByEmail(String email);
}