mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-11-16 11:51:41 +00:00
Docker implementation
Profile fixes Hostgroup fixes TFA fixes
This commit is contained in:
@@ -261,8 +261,10 @@ router.post(
|
||||
body("username").notEmpty().withMessage("Username is required"),
|
||||
body("token")
|
||||
.isLength({ min: 6, max: 6 })
|
||||
.withMessage("Token must be 6 digits"),
|
||||
body("token").isNumeric().withMessage("Token must contain only numbers"),
|
||||
.withMessage("Token must be 6 characters"),
|
||||
body("token")
|
||||
.matches(/^[A-Z0-9]{6}$/)
|
||||
.withMessage("Token must be 6 alphanumeric characters"),
|
||||
],
|
||||
async (req, res) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user