Skip to content

Commit 4341661

Browse files
authored
Merge pull request #19971 from mozilla/fix-acct-reset-in-admin-panel
bug(shared): Make sure ip is sanitized before writing to db
2 parents 43241a8 + 74d8c00 commit 4341661

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/fxa-shared/db/models/auth/security-event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export class SecurityEvent extends BaseAuthModel {
142142
EVENT_NAMES[name],
143143
ipAddrHmac,
144144
Date.now(),
145-
ipAddr,
145+
sanitizeIp(ipAddr),
146146
additionalInfo ? JSON.stringify(additionalInfo) : null
147147
);
148148
} catch (e) {

0 commit comments

Comments
 (0)