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 a9ca3e35c6c54d153134f7160958bc8890cf35e1 Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Wed Apr 18 17:21:48 2018 +0200 correction de l'erreur à la connexion si le mail n'est pas connu --- .../src/main/java/org/chorem/pollen/rest/api/v1/AuthApi.java | 2 -- .../org/chorem/pollen/services/service/security/SecurityService.java | 2 +- 2 files changed, 1 insertion(+), 3 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 ce585a16..3436d3dd 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 @@ -84,8 +84,6 @@ public class AuthApi { @Context PollenSecurityContext securityContext) throws PollenAuthenticationException, MissingAuthenticationException, - PollenInvalidSessionTokenException, - PollenCypherTechnicalException, PollenEmailNotValidatedException, PollenUserBannedException { diff --git a/pollen-services/src/main/java/org/chorem/pollen/services/service/security/SecurityService.java b/pollen-services/src/main/java/org/chorem/pollen/services/service/security/SecurityService.java index fe147011..ceafb2a7 100644 --- a/pollen-services/src/main/java/org/chorem/pollen/services/service/security/SecurityService.java +++ b/pollen-services/src/main/java/org/chorem/pollen/services/service/security/SecurityService.java @@ -121,7 +121,7 @@ public class SecurityService extends PollenServiceSupport { PollenUser user = getPollenUserDao().findUserWithEmailAddressOrNull(login); if (user == null) { - throw new PollenUnauthorizedException(login); + throw new PollenAuthenticationException(); } try { -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.