From 93c822abb518ec0980469f5863c9d2eda0c32d1b Mon Sep 17 00:00:00 2001 From: Nikolai Ovtsinnikov Date: Fri, 23 Feb 2024 16:10:05 +0200 Subject: [PATCH] fix rpId descriptions --- lib/api/2fa/webauthn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/api/2fa/webauthn.js b/lib/api/2fa/webauthn.js index f6cbc87d..9cbbac1c 100644 --- a/lib/api/2fa/webauthn.js +++ b/lib/api/2fa/webauthn.js @@ -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 @@ -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