mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: siteSettings weren't getting applied to plugin auth
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user