Skip to content

Commit 74d8c00

Browse files
committed
bug(shared): Make sure ip is sanitized before writing to db
1 parent a5c6211 commit 74d8c00

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)