From scm@users.chorem.org Fri Sep 22 15:13:00 2017
From: "chorem.org scm" <scm@users.chorem.org>
To: pollen-commits@list.chorem.org
Subject: [Pollen-commits] branch develop updated (053f9ed8 -> a1227dbd)
Date: Fri, 22 Sep 2017 15:12:59 +0200
Message-ID: <20170922131259.17298.15509@bihar.codelutin.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============2879976002381676030=="

--===============2879976002381676030==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

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 mo=
biles
       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(-)

--=20
To stop receiving notification emails like this one, please contact
chorem.org SCM administrator <admin+scm@chorem.org>.

--===============2879976002381676030==--


From scm@users.chorem.org Fri Sep 22 15:13:00 2017
From: "chorem.org scm" <scm@users.chorem.org>
To: pollen-commits@list.chorem.org
Subject:
 [Pollen-commits] 01/01: logout en delete et oubli de mot de passe	en post
Date: Fri, 22 Sep 2017 15:13:00 +0200
Message-ID: <20170922131300.69F355C2A21@goh.codelutin.com>
In-Reply-To: <20170922131259.17298.15509@bihar.codelutin.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============3273433489912207414=="

--===============3273433489912207414==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

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/Auth=
Api.java b/pollen-rest-api/src/main/java/org/chorem/pollen/rest/api/v1/AuthAp=
i.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 {
     }
=20
     @Path("/logout")
-    @GET
+    @DELETE
     public Response logout(@Context SecurityService securityService,
                            @Context PollenSecurityContext securityContext) {
=20
@@ -241,10 +241,10 @@ public class AuthApi {
=20
     }
=20
-    @Path("/lostpassword/{login}")
-    @GET
+    @Path("/lostpassword")
+    @POST
     public void lostPassword(@Context SecurityService securityService,
-                             @PathParam("login") String login) throws Pollen=
EmailNotValidatedException {
+                             String login) throws PollenEmailNotValidatedExc=
eption {
=20
         securityService.lostPassword(login);
=20
diff --git a/pollen-rest-api/src/test/java/org/chorem/pollen/rest/api/AuthApi=
Test.java b/pollen-rest-api/src/test/java/org/chorem/pollen/rest/api/AuthApiT=
est.java
index 63276e56..e3271e23 100644
--- a/pollen-rest-api/src/test/java/org/chorem/pollen/rest/api/AuthApiTest.ja=
va
+++ b/pollen-rest-api/src/test/java/org/chorem/pollen/rest/api/AuthApiTest.ja=
va
@@ -77,7 +77,7 @@ public class AuthApiTest extends AbstractPollenRestApiTest {
=20
         URI uriOut =3D createRequest(RestApiFixtures.logout()).build();
=20
-        Request logout =3D Request.Get(uriOut);
+        Request logout =3D Request.Delete(uriOut);
         logout.addHeader(PollenRestApiRequestFilter.REQUEST_HEADER_SESSION_T=
OKEN, createBeanRef.getPermission());
=20
         int statusCode =3D logout.execute().returnResponse().getStatusLine()=
.getStatusCode();
diff --git a/pollen-ui-riot-js/src/main/web/js/AuthService.js b/pollen-ui-rio=
t-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 {
     }
=20
     signOut() {
-        return this.get("/v1/logout");
+        return this.doDelete("/v1/logout");
     }
=20
     userPromise(auth) {
@@ -76,7 +76,7 @@ class AuthService extends FetchService {
     }
=20
     newPassword(email) {
-        return this.get("/v1/lostpassword/" + email);
+        return this.post("/v1/lostpassword", email);
     }
=20
     resendValidation(email) {

--=20
To stop receiving notification emails like this one, please contact
chorem.org SCM administrator <admin+scm@chorem.org>.

--===============3273433489912207414==--


