瀏覽代碼

Finished the email verification.

KrisVos130 9 年之前
父節點
當前提交
f0f440dca3
共有 2 個文件被更改,包括 8 次插入16 次删除
  1. 0 16
      app/client/scripts/events.js
  2. 8 0
      app/server/server.js

+ 0 - 16
app/client/scripts/events.js

@@ -1054,22 +1054,6 @@ Template.room.events({
     }
 });
 
-                    if (YTPlayer !== undefined) {
-                        YTPlayer.setVolume(val.value);
-                        localStorage.setItem("volume", val.value);
-                    } else if (SCPlayer !== undefined) {
-                        //SCPlayer
-                        var volume = val.value / 100;
-                        SCPlayer.setVolume(volume);
-                        localStorage.setItem("volume", val.value);
-                    }
-                });
-            }
-        }
-        makeSlider();
-    });
-});
-
 Template.room.helpers({
     singleVideo: function() {
         return true;

+ 8 - 0
app/server/server.js

@@ -17,6 +17,10 @@ Meteor.startup(function() {
         }
     }
     emojione.ascii = true;
+
+    Accounts.config({
+        sendVerificationEmail: true
+    });
 });
 
 var default_song = {id: "xKVcVSYmesU", mid: "ABCDEF", likes: 0, dislikes: 0, title: "Immortals", artist: "Fall Out Boy", img: "http://c.directlyrics.com/img/upload/fall-out-boy-sixth-album-cover.jpg", type: "YouTube", duration: 181, skipDuration: 0, requestedBy: "NONE", approvedBy: "NONE"};
@@ -1038,3 +1042,7 @@ Meteor.methods({
 Meteor.setInterval(function() {
     checkUsersPR();
 }, 10000);
+
+Meteor.users.after.insert(function (err, user) {
+    Accounts.sendVerificationEmail(user._id);
+});