From c62a1e2ed6b1a4cce9d71b453e087c776704ab5e Mon Sep 17 00:00:00 2001 From: Mark Struchkov Date: Mon, 3 Feb 2020 12:24:17 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BE=20=D0=BA=D0=B0=D0=BF=D1=87=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/tsc/bitbucketbot/config/unit/EntranceUser.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/tsc/bitbucketbot/config/unit/EntranceUser.java b/src/main/java/com/tsc/bitbucketbot/config/unit/EntranceUser.java index f75eb9f..b84e8e4 100644 --- a/src/main/java/com/tsc/bitbucketbot/config/unit/EntranceUser.java +++ b/src/main/java/com/tsc/bitbucketbot/config/unit/EntranceUser.java @@ -140,6 +140,8 @@ public class EntranceUser { HttpResponse response = httpClient.execute(httpPost); if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) { return registerNewUser(userService, optLogin.get(), message.getPersonId(), optToken.get()); + } else { + return BoxAnswer.of("Вероятно превышено количество попыток входа. Необходимо в браузере выйти из своего аккаунта и повторно войти"); } } catch (IOException e) { BoxAnswer.of("Не удалось авторизоваться");