зеркало из https://github.com/mozilla/fxa.git
Merge pull request #3450 from mozilla/fix/issue-3421
fix(event-broker): allow userAgent to be empty
This commit is contained in:
Коммит
b3630c8b3c
|
@ -83,7 +83,7 @@ Message Properties:
|
||||||
- `uid`: The userid of the account being that was used to log in.
|
- `uid`: The userid of the account being that was used to log in.
|
||||||
- `email`: The primary email address of the account.
|
- `email`: The primary email address of the account.
|
||||||
- `deviceCount`: The number of active sessions on the user's account.
|
- `deviceCount`: The number of active sessions on the user's account.
|
||||||
- `userAgent`: The user-agent header sent by the user on their login request.
|
- `userAgent`: Optional,the user-agent header sent by the user on their login request.
|
||||||
|
|
||||||
This event is currently consumed by the email marketing team
|
This event is currently consumed by the email marketing team
|
||||||
in order to manage sync-setup-related email campaigns.
|
in order to manage sync-setup-related email campaigns.
|
||||||
|
|
|
@ -37,7 +37,7 @@ const LOGIN_SCHEMA = joi
|
||||||
timestamp: joi.number().optional(),
|
timestamp: joi.number().optional(),
|
||||||
ts: joi.number().required(),
|
ts: joi.number().required(),
|
||||||
uid: joi.string().required(),
|
uid: joi.string().required(),
|
||||||
userAgent: joi.string().required()
|
userAgent: joi.string().optional()
|
||||||
})
|
})
|
||||||
.unknown(true)
|
.unknown(true)
|
||||||
.required();
|
.required();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче