mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
start upgrading eslint
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { validatePasswordResetCodeAndFindUser } from '../../libs/password';
|
||||
|
||||
let api = {};
|
||||
const api = {};
|
||||
|
||||
// Internal authentication routes
|
||||
|
||||
@@ -10,7 +10,7 @@ api.resetPasswordSetNewOne = {
|
||||
url: '/static/user/auth/local/reset-password-set-new-one',
|
||||
runCron: false,
|
||||
async handler (req, res) {
|
||||
const code = req.query.code;
|
||||
const { code } = req.query;
|
||||
const user = await validatePasswordResetCodeAndFindUser(code);
|
||||
const isValidCode = Boolean(user);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user