mirror of
https://github.com/vale981/accounts-ui
synced 2025-03-05 09:51:40 -05:00
Improving and removing redundant logging.
This commit is contained in:
parent
0b86066fdf
commit
50a6dd2941
1 changed files with 8 additions and 8 deletions
|
@ -1,11 +1,11 @@
|
|||
try {
|
||||
Accounts.onCreateUser(function(options, user) {
|
||||
if (Accounts.ui._options.onPostSignUpHook) {
|
||||
if (Accounts.ui._options.onPostSignUpHook) {
|
||||
try {
|
||||
Accounts.onCreateUser(function(options, user) {
|
||||
let _user = Accounts.ui._options.onPostSignUpHook(options, user);
|
||||
return _user || user;
|
||||
}
|
||||
return user;
|
||||
});
|
||||
} catch(e) {
|
||||
console.log('You\'ve implemented Accounts.onCreateUser elsewhere in your application, you can therefor not use Accounts.ui.config({ onPostSignUpHook }) on the server.');
|
||||
return user;
|
||||
});
|
||||
} catch(e) {
|
||||
console.log('You\'ve implemented Accounts.onCreateUser elsewhere in your application, you can therefor not use Accounts.ui.config({ onPostSignUpHook }) on the server.');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue