Skip to content

Commit

Permalink
Envoie le mot de passe admin lors de la vérification de l'adresse du …
Browse files Browse the repository at this point in the history
…serveur

Issue: #212277
Change-Id: I80a3d3c45587b2ae90847db5b6694ea0545ebaa1
  • Loading branch information
Emilie Genton committed Apr 12, 2024
1 parent 794f09d commit aec67eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public List<ParametreData> getParametresMobile() {
List.of(
GlobalConstants.PARAMETRE_CARACTERISTIQUE_PENA,
GlobalConstants.PARAMETRE_CARACTERISTIQUE_PIBI,
GlobalConstants.PARAMETRE_MDP_ADMINISTRATEUR,
GlobalConstants.PARAMETRE_MODE_DECONNECTE,
GlobalConstants.PARAMETRE_DUREE_VALIDITE_TOKEN);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,21 @@ public Response checkToken() {
return Response.ok().build();
}

@Path("/mdpAdministrateur")
@Path("/check")
@Operation(
summary = "Renvoie le mdp Admin",
summary = "Check url et envoie le mot de passe admin",
tags = {GlobalConstants.REMOCRA_MOBILE_TAG},
hidden = true)
@PUT
@PermitAll
public Response mdpAdministrateur() {
public Response checkUrl() {
return Response.ok(
parametreRepository
.getParametre(GlobalConstants.PARAMETRE_MDP_ADMINISTRATEUR)
.getValeurParametre())
.build();
}

@Path("/check")
@Operation(
summary = "Check url",
tags = {GlobalConstants.REMOCRA_MOBILE_TAG},
hidden = true)
@PUT
@PermitAll
public Response checkUrl() {
return Response.ok().build();
}

@Path("/login")
@Operation(
summary = "Permet de se connecter à l'application mobile",
Expand Down

0 comments on commit aec67eb

Please sign in to comment.