framework/ember/app/initializers/authentication.js

12 lines
344 B
JavaScript
Raw Normal View History

import FlarumAuthorizer from 'flarum/authorizers/flarum';
import Config from 'flarum/config/environment';
export default {
2015-02-06 08:05:46 +08:00
name: 'authentication',
before: 'simple-auth',
initialize: function(container) {
container.register('authorizer:flarum', FlarumAuthorizer);
Config['simple-auth'] = {authorizer: 'authorizer:flarum'};
}
};