Improving and removing redundant logging.

This commit is contained in:
Tim Brandin 2016-04-02 21:09:32 +02:00
parent 0b86066fdf
commit 50a6dd2941

View file

@ -1,11 +1,11 @@
if (Accounts.ui._options.onPostSignUpHook) {
try {
Accounts.onCreateUser(function(options, user) {
if (Accounts.ui._options.onPostSignUpHook) {
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.');
}
}