Skip to content

Commit

Permalink
Compatibility with beta 16
Browse files Browse the repository at this point in the history
  • Loading branch information
tituspijean authored Apr 28, 2021
2 parents e8d254b + bb9b814 commit dee196b
Show file tree
Hide file tree
Showing 18 changed files with 3,781 additions and 4,056 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ indent_size = 4

[*.{diff,md}]
trim_trailing_whitespace = false

[*.js]
indent_style = space
indent_size = 2

[*.php]
indent_style = space
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
"keywords": ["authentication"],
"license": "MIT",
"authors": [{
"name": "TitusPiJean",
"name": "tituspijean",
"email": "[email protected]"
}],
"support": {
"issues": "https://github.com/tituspijean/flarum-ext-auth-ldap/issues",
"source": "https://github.com/tituspijean/flarum-ext-auth-ldap"
},
"require": {
"flarum/core": ">=0.1.0-beta.12 <=0.1.0-beta.13",
"directorytree/ldaprecord": "v1.2.13"
"flarum/core": "0.1.0-beta.16",
"directorytree/ldaprecord": "v2.4.2"
},
"autoload": {
"psr-4": {
Expand Down
13 changes: 6 additions & 7 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@
use Flarum\Extend;
use Flarum\Foundation\Application;
use Illuminate\Events\Dispatcher;
use Adldap;

return [
(new Extend\Locales(__DIR__ . '/locale')),
(new Extend\Frontend('admin'))
->js(__DIR__.'/js/dist/admin.js'),
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/forum.js')
->css(__DIR__.'/less/forum.less'),
(new Extend\Frontend('admin'))
->js(__DIR__.'/js/dist/admin.js'),
(new Extend\Locales(__DIR__ . '/locale')),
(new Extend\Routes('forum'))
->post('/auth/ldap', 'auth.ldap', Controllers\LDAPAuthController::class)
->get('/auth/ldap', 'auth.ldap', Controllers\LDAPAuthController::class),
function (Dispatcher $events, Application $app) {
$events->subscribe(Listeners\AddApiAttributes::class);
},
(new Extend\Settings)
->serializeToForum('onlyUseLDAP', 'tituspijean-auth-ldap.onlyUse')
->serializeToForum('LDAP_method_name', 'tituspijean-auth-ldap.method_name'),
];
278 changes: 1 addition & 277 deletions js/dist/admin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dee196b

Please sign in to comment.