Fix change passwords flow (bug introduced in 147ef71).

Improve error reporting in Meteor.flush.
This commit is contained in:
David Glasser
2012-10-08 22:56:12 -07:00
parent ef70084e83
commit 139b611b8b
2 changed files with 3 additions and 3 deletions

View File

@@ -249,8 +249,8 @@
{fieldName: 'password-again', fieldLabel: 'New Password (again)',
inputType: 'password',
visible: function () {
return Meteor.accounts._options.requireUsername
&& !Meteor.accounts._options.requireEmail;
return Accounts._options.requireUsername
&& !Accounts._options.requireEmail;
}}
];
};

View File

@@ -62,7 +62,7 @@
try {
f(ctx);
} catch (e) {
Meteor._debug("Exception from Meteor.flush:", e);
Meteor._debug("Exception from Meteor.flush:", e.stack);
}
});
delete ctx._callbacks; // maybe help the GC