Adjusted password form field namings
This commit is contained in:
1 parent
e6ea59dee5
commit
bb42bfc00a
2 files changed
+8
-7
No files matched your search
@@ -84,12 +84,12 @@ const editProfileValidation = joi.object({
|
||||
|
||||
const editPasswordValidation = joi.object({
|
||||
// TBD - validation for current password ?
|
||||
currentPassword : joi
|
||||
password : joi
|
||||
.string().trim()
|
||||
.messages({
|
||||
"string.empty": "*Current password is required.",
|
||||
}),
|
||||
password: joi
|
||||
newpassword: joi
|
||||
.string()
|
||||
.trim()
|
||||
.min(8)
|
||||
|
||||
Reference in new issue
Block a user