Skip to content

Commit

Permalink
Revert "[5.4] MCAS-6: Validate special character not allowed (#561)" (#…
Browse files Browse the repository at this point in the history
…563)

This reverts commit f6d8a9b.
  • Loading branch information
masmerino13 authored Jan 7, 2025
1 parent f6d8a9b commit f0bb9f3
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions submodules/users/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ define(function(require) {
'meta': 'apps'
},

rules: {
password: {
// NOTE: This regex is used to prevent the user from entering a password with a square bracket
regex: /^[^[]+$/
}
},

/* Users */
/* args: parent and userId */
usersRender: function(args) {
Expand Down Expand Up @@ -1105,18 +1098,12 @@ define(function(require) {
},
password: {
required: true,
minlength: 6,
regex: self.rules.password.regex
minlength: 6
},
confirm_password: {
required: true,
equalTo: '#inputPassword'
}
},
messages: {
'password': {
regex: self.i18n.active().validation.defaultRules.passwordCharacter
}
}
});

Expand Down Expand Up @@ -1876,8 +1863,7 @@ define(function(require) {
checkList: originalData.listVMBoxes
},
'user.password': {
minlength: 6,
regex: self.rules.password.regex
minlength: 6
},
'user.device.name': 'required',
'user.device.model': 'required',
Expand All @@ -1904,9 +1890,6 @@ define(function(require) {
},
'user.device.mac_address': {
required: self.i18n.active().validation.required
},
'user.password': {
regex: self.i18n.active().validation.defaultRules.passwordCharacter
}
}
};
Expand Down

0 comments on commit f0bb9f3

Please sign in to comment.