mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
validation token ep changes
This commit is contained in:
parent
4ad7627c4c
commit
dd0b4fe064
2 changed files with 7 additions and 0 deletions
|
@ -90,6 +90,7 @@ function GetApp(): ModuleType {
|
|||
'/api/postfeedback',
|
||||
'/api/fosuploader',
|
||||
'/api/badtestsender',
|
||||
'/api/validationtoken',
|
||||
],
|
||||
})
|
||||
)
|
||||
|
|
|
@ -338,6 +338,12 @@ function setup(data: SubmoduleData): Submodule {
|
|||
isValid: isValid,
|
||||
})
|
||||
} else {
|
||||
if (!user) {
|
||||
res.json({
|
||||
result: 'error',
|
||||
msg: 'you are not logged in',
|
||||
})
|
||||
}
|
||||
const key = v5(validationTokenName, user.pw)
|
||||
|
||||
res.json({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue