forked from 0x2620/pandora
pass value to validate callback, fixes #1490
This commit is contained in:
parent
0cb9ebda1f
commit
6e0d73390c
1 changed files with 4 additions and 2 deletions
|
@ -70,7 +70,8 @@ pandora.validateNewPassword = function(value, callback) {
|
||||||
callback({
|
callback({
|
||||||
message: '',
|
message: '',
|
||||||
// message: 'Missing password',
|
// message: 'Missing password',
|
||||||
valid: value.length > 0
|
valid: value.length > 0,
|
||||||
|
value: value
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -78,7 +79,8 @@ pandora.validatePassword = function(value, callback) {
|
||||||
callback({
|
callback({
|
||||||
message: '',
|
message: '',
|
||||||
// message: 'Missing password',
|
// message: 'Missing password',
|
||||||
valid: value.length > 0
|
valid: value.length > 0,
|
||||||
|
value: value
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue