Merge branch 'master' into fix/user-profile-colors

This commit is contained in:
Cyber authored and GitHub committed 2024-11-14 07:58:16 +01:00
commit 9384138dd4
16 files changed
+22 -30

No files matched your search

-1
View File
@@ -108,7 +108,6 @@ export async function Authentication(
req.rights = new Rights(Number(user.rights));
return next();
} catch (error) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
return next(new HTTPError(error!.toString(), 400));
}
}
-1
View File
@@ -72,7 +72,6 @@ router.post(
await User.update({ id: user.id }, data);
// come on, the user has to have an email to reset their password in the first place
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
await Email.sendPasswordChanged(user, user.email!);
res.json({ token: await generateToken(user.id) });