Accounts.resetPassword 尽管有详尽的记录,但仍未定义
Accounts.resetPassword is undefined despite being documented thoroughly
我正在调试 Meteor 方法,在我的服务器上,Accounts
(导入为 import { Accounts } from 'meteor/accounts-base';
)没有 resetPassword
值。它有 .removeEmail
、.createUser
等值,但没有 resetPassword
。我很困惑,因为这是一个有据可查的方法。我什至没有看到任何人在 Google.
上有类似的问题
我使用的是 Meteor 版本 1.4.3.1,帐户密码版本 1.3.4。
resetPassword
、changePassword
和forgotPassword
方法仅在客户端可用。您可以在 the docs:
条目的右上角看到这个
您可能想要使用的服务器端方法是 sendResetPasswordEmail or setPassword
我正在调试 Meteor 方法,在我的服务器上,Accounts
(导入为 import { Accounts } from 'meteor/accounts-base';
)没有 resetPassword
值。它有 .removeEmail
、.createUser
等值,但没有 resetPassword
。我很困惑,因为这是一个有据可查的方法。我什至没有看到任何人在 Google.
我使用的是 Meteor 版本 1.4.3.1,帐户密码版本 1.3.4。
resetPassword
、changePassword
和forgotPassword
方法仅在客户端可用。您可以在 the docs:
您可能想要使用的服务器端方法是 sendResetPasswordEmail or setPassword