Fix handling of trailing '/' in captcha urls
This commit is contained in:
parent
e41973c238
commit
f152dcccc3
2 changed files with 12 additions and 1 deletions
|
@ -347,7 +347,7 @@ export const linkDeviceRoute = _route('linkDevice', {
|
|||
*/
|
||||
export const captchaRoute = _route('captcha', {
|
||||
// needs `(.+)` to capture `.` in hostname
|
||||
patterns: [_pattern('signalcaptcha:', ':captchaId(.+)', '', {})],
|
||||
patterns: [_pattern('signalcaptcha:', ':captchaId(.+)', '{/}?', {})],
|
||||
schema: z.object({
|
||||
captchaId: paramSchema, // opaque
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue