password validation in !keypair command, closes #238

This commit is contained in:
Roman Volosovskyi 2016-09-19 14:47:02 +03:00
parent 5fb6a19d0a
commit 9b8f079606
1 changed files with 12 additions and 1 deletions

View File

@ -1,4 +1,3 @@
var phones = [
{
number: "89171111111",
@ -186,6 +185,18 @@ status.response({
params: [params.value]
};
},
validator: function (params) {
if(!params.value || params.value.length < 6){
return {
errors: [
status.components.validationMessage(
"Password",
"Password should be not less then 6 symbols."
)
]
};
}
},
preview: function (params) {
return status.components.text(
{