branch develop updated (053f9ed8 -> a1227dbd)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git from 053f9ed8 fixes #146 The registration form does not display on mobiles new a1227dbd logout en delete et oubli de mot de passe en post The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit a1227dbdd064c8171b2985953845222efa5f086b Author: Kevin Morin <morin@codelutin.com> Date: Fri Sep 22 15:11:57 2017 +0200 logout en delete et oubli de mot de passe en post Summary of changes: .../src/main/java/org/chorem/pollen/rest/api/v1/AuthApi.java | 8 ++++---- .../src/test/java/org/chorem/pollen/rest/api/AuthApiTest.java | 2 +- pollen-ui-riot-js/src/main/web/js/AuthService.js | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit a1227dbdd064c8171b2985953845222efa5f086b Author: Kevin Morin <morin@codelutin.com> Date: Fri Sep 22 15:11:57 2017 +0200 logout en delete et oubli de mot de passe en post --- .../src/main/java/org/chorem/pollen/rest/api/v1/AuthApi.java | 8 ++++---- .../src/test/java/org/chorem/pollen/rest/api/AuthApiTest.java | 2 +- pollen-ui-riot-js/src/main/web/js/AuthService.js | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pollen-rest-api/src/main/java/org/chorem/pollen/rest/api/v1/AuthApi.java b/pollen-rest-api/src/main/java/org/chorem/pollen/rest/api/v1/AuthApi.java index 1dbfbd1a..33ece430 100644 --- a/pollen-rest-api/src/main/java/org/chorem/pollen/rest/api/v1/AuthApi.java +++ b/pollen-rest-api/src/main/java/org/chorem/pollen/rest/api/v1/AuthApi.java @@ -228,7 +228,7 @@ public class AuthApi { } @Path("/logout") - @GET + @DELETE public Response logout(@Context SecurityService securityService, @Context PollenSecurityContext securityContext) { @@ -241,10 +241,10 @@ public class AuthApi { } - @Path("/lostpassword/{login}") - @GET + @Path("/lostpassword") + @POST public void lostPassword(@Context SecurityService securityService, - @PathParam("login") String login) throws PollenEmailNotValidatedException { + String login) throws PollenEmailNotValidatedException { securityService.lostPassword(login); diff --git a/pollen-rest-api/src/test/java/org/chorem/pollen/rest/api/AuthApiTest.java b/pollen-rest-api/src/test/java/org/chorem/pollen/rest/api/AuthApiTest.java index 63276e56..e3271e23 100644 --- a/pollen-rest-api/src/test/java/org/chorem/pollen/rest/api/AuthApiTest.java +++ b/pollen-rest-api/src/test/java/org/chorem/pollen/rest/api/AuthApiTest.java @@ -77,7 +77,7 @@ public class AuthApiTest extends AbstractPollenRestApiTest { URI uriOut = createRequest(RestApiFixtures.logout()).build(); - Request logout = Request.Get(uriOut); + Request logout = Request.Delete(uriOut); logout.addHeader(PollenRestApiRequestFilter.REQUEST_HEADER_SESSION_TOKEN, createBeanRef.getPermission()); int statusCode = logout.execute().returnResponse().getStatusLine().getStatusCode(); diff --git a/pollen-ui-riot-js/src/main/web/js/AuthService.js b/pollen-ui-riot-js/src/main/web/js/AuthService.js index 8a1944e6..e3ebea3f 100644 --- a/pollen-ui-riot-js/src/main/web/js/AuthService.js +++ b/pollen-ui-riot-js/src/main/web/js/AuthService.js @@ -60,7 +60,7 @@ class AuthService extends FetchService { } signOut() { - return this.get("/v1/logout"); + return this.doDelete("/v1/logout"); } userPromise(auth) { @@ -76,7 +76,7 @@ class AuthService extends FetchService { } newPassword(email) { - return this.get("/v1/lostpassword/" + email); + return this.post("/v1/lostpassword", email); } resendValidation(email) { -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm