Skip to content

Commit

Permalink
fix rpId descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
NickOvt committed Feb 23, 2024
1 parent 2f2c156 commit 93c822a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/api/2fa/webauthn.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ module.exports = (db, server, userHandler) => {
'Indicates whether authenticators should be part of the OS ("platform"), or can be roaming authenticators ("cross-platform")'
),

rpId: Joi.string().hostname().empty('Relaying party ID. Is domain.'),
rpId: Joi.string().hostname().empty('').description('Relaying party ID. Is domain.'),

sess: sessSchema,
ip: sessIPSchema
Expand Down Expand Up @@ -317,7 +317,7 @@ module.exports = (db, server, userHandler) => {
.required()
.description('Attestation object represented as a hex string'),

rpId: Joi.string().hostname().empty('Relaying Party ID. Is domain'),
rpId: Joi.string().hostname().empty('').description('Relaying party ID. Is domain.'),

sess: sessSchema,
ip: sessIPSchema
Expand Down

0 comments on commit 93c822a

Please sign in to comment.