From 747a3cc5bd9466d22a6788c712004bde0cdbd278 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Fri, 16 Apr 2021 14:48:15 +0300 Subject: [PATCH] Auth: Add error `PHONE_PASSWORD_FLOOD` (#1013) --- src/api/gramjs/methods/auth.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/gramjs/methods/auth.ts b/src/api/gramjs/methods/auth.ts index 176fdc033..a3f791001 100644 --- a/src/api/gramjs/methods/auth.ts +++ b/src/api/gramjs/methods/auth.ts @@ -12,6 +12,7 @@ const ApiErrors: { [k: string]: string } = { PHONE_NUMBER_INVALID: 'Invalid Phone Number', PHONE_CODE_INVALID: 'Invalid Code', PASSWORD_HASH_INVALID: 'Invalid Password', + PHONE_PASSWORD_FLOOD: 'You have tried logging in too many times', }; const authController: {