FIX: js error when logging in using another Discourse site as sso provider

This commit is contained in:
Neil Lalonde 2017-09-29 14:02:34 -04:00
parent df09599531
commit d5d66e969e
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
type: 'POST'
}).then(function (result) {
// Successful login
if (result.error) {
if (result && result.error) {
self.set('loggingIn', false);
if (result.reason === 'not_activated') {
self.send('showNotActivated', {