mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
commit
4f92bd4980
1 changed files with 13 additions and 13 deletions
|
@ -21,11 +21,11 @@ Accounts.onCreateUser(function(options, user){
|
||||||
// set email on profile
|
// set email on profile
|
||||||
if (options.email)
|
if (options.email)
|
||||||
user.profile.email = options.email;
|
user.profile.email = options.email;
|
||||||
|
|
||||||
// if email is set, use it to generate email hash
|
// if email is set, use it to generate email hash
|
||||||
if (getEmail(user))
|
if (getEmail(user))
|
||||||
user.email_hash = getEmailHash(user);
|
user.email_hash = getEmailHash(user);
|
||||||
|
|
||||||
// set username on profile
|
// set username on profile
|
||||||
if (!user.profile.name)
|
if (!user.profile.name)
|
||||||
user.profile.name = user.username;
|
user.profile.name = user.username;
|
||||||
|
@ -39,14 +39,14 @@ Accounts.onCreateUser(function(options, user){
|
||||||
// ------------------------------ Callbacks ------------------------------ //
|
// ------------------------------ Callbacks ------------------------------ //
|
||||||
|
|
||||||
// run all post submit client callbacks on properties object successively
|
// run all post submit client callbacks on properties object successively
|
||||||
clog('// Start userCreatedCallbacks')
|
clog('// Start userCreatedCallbacks');
|
||||||
user = userCreatedCallbacks.reduce(function(result, currentFunction) {
|
user = userCreatedCallbacks.reduce(function(result, currentFunction) {
|
||||||
clog('// Running '+currentFunction.name+'…')
|
clog('// Running '+currentFunction.name+'…');
|
||||||
return currentFunction(result);
|
return currentFunction(result);
|
||||||
}, user);
|
}, user);
|
||||||
clog('// Finished userCreatedCallbacks')
|
clog('// Finished userCreatedCallbacks');
|
||||||
clog('// User object:')
|
clog('// User object:');
|
||||||
clog(user)
|
clog(user);
|
||||||
|
|
||||||
// ------------------------------ Analytics ------------------------------ //
|
// ------------------------------ Analytics ------------------------------ //
|
||||||
|
|
||||||
|
@ -69,12 +69,12 @@ Meteor.methods({
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
numberOfPostsToday: function(){
|
// numberOfPostsToday: function(){
|
||||||
console.log(numberOfItemsInPast24Hours(Meteor.user(), Posts));
|
// console.log(numberOfItemsInPast24Hours(Meteor.user(), Posts));
|
||||||
},
|
// },
|
||||||
numberOfCommentsToday: function(){
|
// numberOfCommentsToday: function(){
|
||||||
console.log(numberOfItemsInPast24Hours(Meteor.user(), Comments));
|
// console.log(numberOfItemsInPast24Hours(Meteor.user(), Comments));
|
||||||
},
|
// },
|
||||||
testBuffer: function(){
|
testBuffer: function(){
|
||||||
// TODO
|
// TODO
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue