我已经在我的开发箱上挂了电子邮件,并在创建用户后收到验证邮件.我可以点击附带的链接,它会将我带到我的主页面.
1)单击链接似乎进行了一些处理,因为它重定向到/,但它不会更改用户帐户上的已验证标志.
2)它似乎忽略了我的Accounts.config设置,只有在我明确调用时才有效
token = Accounts.sendVerificationEmail(userId)
Run Code Online (Sandbox Code Playgroud)
细节:
mrt --version
Meteorite version 0.6.11
Release 0.6.5.1
mrt list --using
standard-app-packages
preserve-inputs
less
coffeescript
iron-router
foundation
http
moment
email
spin
roles
accounts-base
accounts-password
accounts-ui
Run Code Online (Sandbox Code Playgroud)
服务器/ lib目录/ account.coffee
Accounts.config
sendVerificationEmail: true
forbidClientAccountCreation: true
Run Code Online (Sandbox Code Playgroud)
服务器方法:
Meteor.startup ->
create_user = (options) ->
console.log('create_user: ' + options.username)
userId = Accounts.createUser options
# should not be necessary, but I get email only when included
token = Accounts.sendVerificationEmail(userId)
Meteor.methods({ create_user: create_user })
Run Code Online (Sandbox Code Playgroud)
在上面调用之后,mongo显示:
emails: [ { "address" : "jim@less2do.com" …
Run Code Online (Sandbox Code Playgroud) 我正在进行一个大项目,第一次接触Meteor,我开始经常这样做.很难将其追溯到特定的提交,因为它似乎是间歇性的.
找到问题的有效方法是什么?异常中有什么可以帮助缩小范围吗?如何在/退出Deps中逐步/设置断点?我所有的deps都是来自mongo操作的自动设备,或者是一个会话var上的一个,没有任何明确的.
谢谢