feat: add request data to user_tokens and token filtering

This commit is contained in:
Sérgio Salgado 2020-10-26 09:57:31 +00:00 committed by Josh Harvey
parent c4e7547c45
commit 791b275cdf
9 changed files with 61 additions and 16 deletions

View file

@ -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')