merge conflicts

This commit is contained in:
Sana EL HIRI 2022-02-18 18:03:28 +01:00
commit a91c4f652e
3 changed files with 4 additions and 7 deletions

View file

@ -20,6 +20,7 @@ public class ContactController {
@Autowired @Autowired
private ContactRepository contactRepo; private ContactRepository contactRepo;
//Récupère les infos d'un contact par son ID //Récupère les infos d'un contact par son ID
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
//@PreAuthorize("hasRole('ROLE_PARENT') or hasRole('ROLE_ENFANT')") //@PreAuthorize("hasRole('ROLE_PARENT') or hasRole('ROLE_ENFANT')")

View file

@ -28,6 +28,7 @@ public class MembreController {
@Autowired @Autowired
private MembreRepository membreRepo; private MembreRepository membreRepo;
@Autowired @Autowired
private MembreService membreService; private MembreService membreService;
@Autowired @Autowired
@ -176,8 +177,6 @@ public class MembreController {
} }
/********************* Gestion Mot de Passe ************************************/ /********************* Gestion Mot de Passe ************************************/
//cette methode ne fonctionne pas parce que ça affiche "trouvé" dans tous les cas //cette methode ne fonctionne pas parce que ça affiche "trouvé" dans tous les cas
@GetMapping("/forgot-password") @GetMapping("/forgot-password")
//@PreAuthorize("hasRole('ROLE_PARENT') or hasRole('ROLE_ENFANT')") //@PreAuthorize("hasRole('ROLE_PARENT') or hasRole('ROLE_ENFANT')")
@ -216,7 +215,4 @@ public class MembreController {
return ResponseEntity.status(HttpStatus.OK).body(resultMembre); return ResponseEntity.status(HttpStatus.OK).body(resultMembre);
} }
} }

View file

@ -21,7 +21,7 @@ public class TeamController {
@Autowired @Autowired
private TeamRepository teamRepo; private TeamRepository teamRepo;
// @RequestMapping("/teams") // @RequestMapping("/teams")
@ResponseBody @ResponseBody
public String home() public String home()
{ {