Skip to content

Commit 2e30a4c

Browse files
committed
tweaked update account schema
1 parent ea38574 commit 2e30a4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

accounts/accounts.controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function updateSchema(req, res, next) {
151151
lastName: Joi.string().empty(''),
152152
email: Joi.string().email().empty(''),
153153
password: Joi.string().min(6).empty(''),
154-
confirmPassword: Joi.ref('password')
154+
confirmPassword: Joi.string().valid(Joi.ref('password')).empty('')
155155
};
156156

157157
// only admins can update role

0 commit comments

Comments
 (0)