validation token ep changes

This commit is contained in:
mrfry 2023-04-02 14:07:25 +02:00
parent 4ad7627c4c
commit dd0b4fe064
2 changed files with 7 additions and 0 deletions

View file

@ -90,6 +90,7 @@ function GetApp(): ModuleType {
'/api/postfeedback', '/api/postfeedback',
'/api/fosuploader', '/api/fosuploader',
'/api/badtestsender', '/api/badtestsender',
'/api/validationtoken',
], ],
}) })
) )

View file

@ -338,6 +338,12 @@ function setup(data: SubmoduleData): Submodule {
isValid: isValid, isValid: isValid,
}) })
} else { } else {
if (!user) {
res.json({
result: 'error',
msg: 'you are not logged in',
})
}
const key = v5(validationTokenName, user.pw) const key = v5(validationTokenName, user.pw)
res.json({ res.json({