Merge pull request #6130 from kevinansfield/missing-signin-error

Fix missing error on signin when server has gone away
This commit is contained in:
Hannah Wolfe 2015-11-26 23:07:44 +08:00
commit cd5188a32a

View File

@ -26,7 +26,7 @@ export default Ember.Controller.extend(ValidationEngine, {
this.get('session').authenticate(authStrategy, model.get('identification'), model.get('password')).catch(function (error) {
self.toggleProperty('loggingIn');
if (error.errors) {
if (error && error.errors) {
error.errors.forEach(function (err) {
err.message = err.message.htmlSafe();
});