-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
User image with gravatar implementation issue # 44
- Loading branch information
Syed Asher Ahmed
committed
Mar 28, 2017
1 parent
74bba8b
commit c45e8b3
Showing
6 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,9 @@ [email protected] | |
[email protected] | ||
[email protected] | ||
[email protected] | ||
jparker:[email protected] | ||
jparker:[email protected] | ||
jparker:[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// methods related to signUp and Login | ||
|
||
import { Meteor } from 'meteor/meteor'; | ||
import { Accounts as MeteorAccounts } from 'meteor/accounts-base' | ||
import { Accounts } from '../accounts/accounts.js'; | ||
|
||
|
||
|
||
MeteorAccounts.onCreateUser(function(options, user) { | ||
var account = {owner: user._id}; | ||
//Inserting default bank account on signup | ||
Accounts.insert({owner: account.owner, bank: 'bank-Default', country: 'PK', purpose: 'Bank Account', icon: 'abc' }); | ||
//Reset user object | ||
if (options.profile) | ||
user.profile = options.profile; | ||
user.profile.md5hash = Gravatar.hash( user.emails[0].address ); | ||
return user; | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters