浏览代码

removed facebook (again)

Akira Laine 9 年之前
父节点
当前提交
850e5bfb35
共有 4 个文件被更改,包括 1 次插入25 次删除
  1. 0 12
      app/client/scripts/events.js
  2. 0 1
      app/client/templates/login.html
  3. 0 1
      app/client/templates/register.html
  4. 1 11
      app/server/server.js

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

@@ -265,12 +265,6 @@ Template.login.events({
         Meteor.loginWithGithub({loginStyle: "redirect"}, function(err, res) {
         Meteor.loginWithGithub({loginStyle: "redirect"}, function(err, res) {
             console.log(err, res);
             console.log(err, res);
         });
         });
-    },
-
-    "click #facebook-login": function(){
-        Meteor.loginWithFacebook(function(err, res) {
-            console.log(err, res);
-        });
     }
     }
 });
 });
 
 
@@ -569,12 +563,6 @@ Template.register.events({
         Meteor.loginWithGithub({loginStyle: "redirect"}, function(err, res) {
         Meteor.loginWithGithub({loginStyle: "redirect"}, function(err, res) {
             console.log(err, res);
             console.log(err, res);
         });
         });
-    },
-
-    "click #facebook-login": function(){
-        Meteor.loginWithFacebook({loginStyle: "redirect"}, function(err, res) {
-            console.log(err, res);
-        });
     }
     }
 });
 });
 
 

+ 0 - 1
app/client/templates/login.html

@@ -20,7 +20,6 @@
                     <i class="material-icons right">send</i>
                     <i class="material-icons right">send</i>
                 </button>
                 </button>
             </form>
             </form>
-            <button id="facebook-login" class="btn waves-effect waves-light blue darken-4 social">Login With Facebook</button>
             <button id="github-login" class="btn waves-effect waves-light grey social">Login With GitHub</button>
             <button id="github-login" class="btn waves-effect waves-light grey social">Login With GitHub</button>
         </div>
         </div>
     </main>
     </main>

+ 0 - 1
app/client/templates/register.html

@@ -25,7 +25,6 @@
                     <i class="material-icons right">send</i>
                     <i class="material-icons right">send</i>
                 </button>
                 </button>
             </form>
             </form>
-            <button id="facebook-login" class="btn waves-effect waves-light blue darken-4 social">Login With Facebook</button>
             <button id="github-login" class="btn waves-effect waves-light grey social">Login With GitHub</button>
             <button id="github-login" class="btn waves-effect waves-light grey social">Login With GitHub</button>
         </div>
         </div>
     </main>
     </main>

+ 1 - 11
app/server/server.js

@@ -1165,15 +1165,5 @@ Meteor.setInterval(function () {
 }, 10000);
 }, 10000);
 
 
 Meteor.users.after.insert(function (err, user) {
 Meteor.users.after.insert(function (err, user) {
-    if(user.emails) {
-        Accounts.sendVerificationEmail(user._id);
-    }
-    else if(user.services.facebook.email){
-        Meteor.users.update({"profile.username": user.profile.username}, {$set: {emails: [{"address": user.services.facebook.email, "verified": false}]}})
-        Accounts.sendVerificationEmail(user._id);
-    }
-    else if(user.services.github.email){
-        Meteor.users.update({"profile.username": user.profile.username}, {$set: {emails: [{"address": user.services.github.email, "verified": false}]}})
-        Accounts.sendVerificationEmail(user._id, user.services.github.email);
-    }
+    Accounts.sendVerificationEmail(user._id);
 });
 });