0
我想重置用户的密码,但不是使用API本身,我想创建一个提示。我使用meteor-ionic,并可能要使用所示的提示之一here离子和流星;用提示重置密码
Accounts.resetPassword(this.params.token, function() {
IonPopup.prompt({
title: 'Create a new password',
template: 'Please enter your new password',
okText: 'Submit',
inputType: 'password',
inputPlaceholder: 'Your Password',
onOk: function() {
return this.password;
}
});
}, function(err) {
Router.go('home');
});
然而,这会给出一个错误。
Exception in callback of async function: Error: Match error: Expected string, got function
如果我更换Ion.popup()
与prompt('please put in password')
,它会工作。这导致我认为onOk
函数的执行没有停止。
我怎样才能使用弹出窗口重置密码与流星离子?