gpt4 book ai didi

javascript - ionic 和 meteor ;根据提示重置密码

转载 作者:行者123 更新时间:2023-11-28 19:20:10 25 4
gpt4 key购买 nike

我想重置用户的密码,但我想创建一个提示,而不是使用 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('请输入密码'),它将起作用。这让我认为 onOk 函数的执行并未停止。

我如何使用弹出窗口来重置与meteor-ionic的密码?

最佳答案

我认为你需要的是这样的:

onOk: function(event,response) {
return response;

关于javascript - ionic 和 meteor ;根据提示重置密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29040779/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com