FIX: `siteSettings` weren't getting applied to plugin auth
This commit is contained in:
parent
00e45c0d3c
commit
b8261a662b
|
@ -244,9 +244,12 @@ define("discourse/initializers/login-method-#{hash}",
|
||||||
__exports__["default"] = {
|
__exports__["default"] = {
|
||||||
name: "login-method-#{hash}",
|
name: "login-method-#{hash}",
|
||||||
after: "inject-objects",
|
after: "inject-objects",
|
||||||
initialize: function() {
|
initialize: function(container) {
|
||||||
if (Ember.testing) { return; }
|
if (Ember.testing) { return; }
|
||||||
module.register(#{auth_json});
|
|
||||||
|
var authOpts = #{auth_json};
|
||||||
|
authOpts.siteSettings = container.lookup('site-settings:main');
|
||||||
|
module.register(authOpts);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue