- } catch (LoginException e1) {
- throw new CmsException("Cannot authenticate", e1);
+ } catch (FailedLoginException e) {
+ log.warn(e.getMessage());
+ try {
+ Thread.sleep(3000);
+ } catch (InterruptedException e2) {
+ // silent
+ }
+ ErrorFeedback.show("Login failed", e);
+ return false;
+ } catch (LoginException e) {
+ log.error("Cannot login", e);
+ return false;