Skip to content
Open

. #7

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion routes/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const users = require('../controllers/users');

router.route('/register')
.get(users.renderRegister)
.post(catchAsync(users.register));
.post(catchAsync(users.register)
);

router.route('/login')
.get(users.renderLogin)
Expand Down
2 changes: 1 addition & 1 deletion schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const extension = (joi) => ({
messages: {
'string.escapeHTML': '{{#label}} must not include HTML!'
},
rules: {
rules: {
escapeHTML: {
validate(value, helpers) {
const clean = sanitizeHtml(value, {
Expand Down