implemented settings and user page (darkmode is still missing)
This commit is contained in:
@ -38,10 +38,7 @@ export const validateRegister = (req, res, next) => {
|
||||
});
|
||||
}
|
||||
// password (repeat) must match
|
||||
if (
|
||||
!req.body.password_repeat ||
|
||||
req.body.password != req.body.password_repeat
|
||||
) {
|
||||
if (req.body.password != req.body.password_repeat) {
|
||||
return res.status(400).send({
|
||||
message: 'Both passwords must match',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user