mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 11:34:24 +03:00
Merge pull request #6130 from kevinansfield/missing-signin-error
Fix missing error on signin when server has gone away
This commit is contained in:
commit
cd5188a32a
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user