Skip to content

Commit 28208c4

Browse files
committed
task(auth): Make account status customs check more strict
1 parent 44a0fb3 commit 28208c4

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)