fix(api): correct NEX password regex pattern in /v1/repair-uidhmac

This commit is contained in:
Jonathan Barrow 2025-12-27 22:01:59 -05:00
parent e8c5008336
commit 2b3cd45de1
No known key found for this signature in database
GPG Key ID: 2A7DAA6DED5A77E5

View File

@ -23,7 +23,7 @@ router.post('/', async (request: express.Request, response: express.Response): P
return;
}
if (!nexPassword || !/^[0-9A-Za-z]{16}$/.test(nexPassword)) {
if (!nexPassword || !/^[\x21-\x5B\x5D-\x7D]{16}$/.test(nexPassword)) {
response.status(400).json({
app: 'api',
status: 400,