forked from 0x2620/pandora
fix rest password form
This commit is contained in:
parent
1e9e56e670
commit
124de36cb6
1 changed files with 5 additions and 2 deletions
|
@ -160,7 +160,7 @@ pandora.ui.accountForm = function(action, value) {
|
|||
}
|
||||
});
|
||||
} else if (action == 'reset') {
|
||||
var usernameOrEmail = data.usernameOrEmail,
|
||||
var usernameOrEmail = data.values.usernameOrEmail,
|
||||
key = usernameOrEmail[0];
|
||||
data = {};
|
||||
data[key] = usernameOrEmail[1];
|
||||
|
@ -294,7 +294,10 @@ pandora.ui.accountForm = function(action, value) {
|
|||
],
|
||||
separators: [
|
||||
{title: '', width: 0}
|
||||
]
|
||||
],
|
||||
validate: function(value, callback) {
|
||||
callback(!Ox.isEmpty(value[1]));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue