We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 99063f7 + d363e6c commit 92eaaf8Copy full SHA for 92eaaf8
src/libs/API.js
@@ -221,6 +221,11 @@ function Authenticate(parameters) {
221
case 401:
222
throw new Error('passwordForm.error.incorrectLoginOrPassword');
223
case 402:
224
+ // If too few characters are passed as the password, the WAF will pass it to the API as an empty
225
+ // string, which results in a 402 error from Auth.
226
+ if (response.message === '402 Missing partnerUserSecret') {
227
+ throw new Error('passwordForm.error.incorrectLoginOrPassword');
228
+ }
229
throw new Error('passwordForm.error.twoFactorAuthenticationEnabled');
230
case 403:
231
throw new Error('passwordForm.error.invalidLoginOrPassword');
0 commit comments