FIX: `siteSettings` weren't getting applied to plugin auth

This commit is contained in:
Robin Ward 2016-07-13 16:11:48 -04:00
parent 00e45c0d3c
commit b8261a662b
1 changed files with 5 additions and 2 deletions

View File

@ -244,9 +244,12 @@ define("discourse/initializers/login-method-#{hash}",
__exports__["default"] = {
name: "login-method-#{hash}",
after: "inject-objects",
initialize: function() {
initialize: function(container) {
if (Ember.testing) { return; }
module.register(#{auth_json});
var authOpts = #{auth_json};
authOpts.siteSettings = container.lookup('site-settings:main');
module.register(authOpts);
}
};
});