我使用Meteor啓動函數在服務器上創建默認用戶。我想創建一個用戶並在啓動時驗證他/她的電子郵件(我假設你只能在創建帳戶後執行此操作)。 這是我有: Meteor.startup(function() {
// Creates default accounts if there no user accounts
if(!Meteor.users.find().count())
我正在爲我的流星應用程序發送電子郵件驗證,但我還將應用程序上傳到github。我有以下代碼: if (Meteor.isServer) {
// This code only runs on the server
Meteor.startup(function() {
// code to run on server at startup
process.env.MAIL