mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
Started work on supporting twitter.
This commit is contained in:
parent
7fd1923d15
commit
e563aad151
4 changed files with 14 additions and 10 deletions
|
@ -10,3 +10,4 @@ accounts-ui
|
|||
router
|
||||
groups
|
||||
moment
|
||||
accounts-twitter
|
||||
|
|
|
@ -45,7 +45,7 @@ Template.user_edit.user = function(){
|
|||
|
||||
Template.user_edit.email = function(){
|
||||
if(!this.loading){
|
||||
return this.emails[0].address;
|
||||
return this.emails && this.emails[0] && this.emails[0].address;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
10
server/bootstrap.js
vendored
10
server/bootstrap.js
vendored
|
@ -23,8 +23,8 @@ function prepopulateDatabase(){
|
|||
});
|
||||
}
|
||||
|
||||
// Meteor.startup(function () {
|
||||
// if(Posts.find().count() === 0){
|
||||
// prepopulateDatabase();
|
||||
// }
|
||||
// });
|
||||
Meteor.startup(function () {
|
||||
if(Posts.find().count() === 0){
|
||||
prepopulateDatabase();
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
Meteor.accounts.onCreateUser(function(options, extra, user){
|
||||
// user.created_at=new Date().getTime();
|
||||
user.email_hash = CryptoJS.MD5(options.email.trim().toLowerCase()).toString();
|
||||
user.karma = 0;
|
||||
if (options.email)
|
||||
user.email_hash = CryptoJS.MD5(options.email.trim().toLowerCase()).toString();
|
||||
|
||||
_.extend(user, extra)
|
||||
|
||||
return user;
|
||||
});
|
Loading…
Add table
Reference in a new issue