Skip to content

Commit dae8ad7

Browse files
authored
Merge pull request #19963 from mozilla/stricter-status-check
task(auth): Make account status customs check more strict
2 parents fe3db08 + 28208c4 commit dae8ad7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/fxa-auth-server/lib/routes/account.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1604,6 +1604,9 @@ export class AccountHandler {
16041604
result.hasPassword = account.verifierSetAt > 0;
16051605
} else {
16061606
const exist = await this.db.accountExists(email);
1607+
if (!exist) {
1608+
await this.customs.check(request, email, 'accountStatusCheckFailed');
1609+
}
16071610
result.exists = exist;
16081611
}
16091612

0 commit comments

Comments
 (0)