feat: add request data to user_tokens and token filtering
This commit is contained in:
parent
c4e7547c45
commit
791b275cdf
9 changed files with 61 additions and 16 deletions
|
|
@ -71,7 +71,7 @@ app.get('/api/register', (req, res, next) => {
|
|||
|
||||
if (!otp) return next()
|
||||
|
||||
return login.register(otp)
|
||||
return login.register(req)
|
||||
.then(r => {
|
||||
if (r.expired) return res.status(401).send('OTP expired, generate new registration link')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue