FIX: js error when logging in using another Discourse site as sso provider
This commit is contained in:
parent
df09599531
commit
d5d66e969e
|
@ -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', {
|
||||
|
|
Loading…
Reference in New Issue