Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/LoginServlet.java @ 8399:c668520cc5fb
Log successful/unsuccessful authentication without traceback.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 09 Oct 2014 12:20:48 +0200 |
parents | 238fc722f87a |
children | 5e38e2924c07 |
comparison
equal
deleted
inserted
replaced
8398:ae750e3fa9ea | 8399:c668520cc5fb |
---|---|
47 if (aresp == null || !aresp.isSuccess()) { | 47 if (aresp == null || !aresp.isSuccess()) { |
48 log.debug("Authentication not successful"); | 48 log.debug("Authentication not successful"); |
49 this.redirectFailure(resp, req.getContextPath()); | 49 this.redirectFailure(resp, req.getContextPath()); |
50 return; | 50 return; |
51 } | 51 } |
52 log.info("Authentication successfull."); | |
52 this.performLogin(req, resp, aresp.getUser()); | 53 this.performLogin(req, resp, aresp.getUser()); |
53 } | 54 } |
54 catch(AuthenticationException e) { | 55 catch(AuthenticationException e) { |
55 log.error(e, e); | 56 log.error(e.getMessage()); |
56 this.redirectFailure(resp, req.getContextPath(), e); | 57 this.redirectFailure(resp, req.getContextPath(), e); |
57 } | 58 } |
58 } | 59 } |
59 | 60 |
60 private Authentication auth(String username, String password, String encoding) | 61 private Authentication auth(String username, String password, String encoding) |