This repository was archived by the owner on Jul 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
# Adldap2 - Laravel
2
2
3
- [ ![ Build Status] ( https://img.shields.io/travis/Adldap2/Adldap2-laravel .svg?style=flat-square )] ( https://travis-ci.org/Adldap2/Adldap2-laravel )
3
+ [ ![ Build Status] ( https://img.shields.io/travis/Adldap2/Adldap2-Laravel .svg?style=flat-square )] ( https://travis-ci.org/Adldap2/Adldap2-Laravel )
4
4
[ ![ Scrutinizer Code Quality] ( https://img.shields.io/scrutinizer/g/Adldap2/Adldap2-laravel/master.svg?style=flat-square )] ( https://scrutinizer-ci.com/g/Adldap2/Adldap2-laravel/?branch=master )
5
5
[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/adldap2/adldap2-laravel.svg?style=flat-square )] ( https://packagist.org/packages/adldap2/adldap2-laravel )
6
6
[ ![ Latest Stable Version] ( https://img.shields.io/packagist/v/adldap2/adldap2-laravel.svg?style=flat-square )] ( https://packagist.org/packages/adldap2/adldap2-laravel )
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public function boot()
31
31
$ this ->mergeConfigFrom ($ auth , 'adldap_auth ' );
32
32
33
33
// Extend Laravel authentication with Adldap driver.
34
- Auth::extend ('adldap ' , function ($ app ) {
34
+ Auth::extend ('adldap ' , function ($ app ) {
35
35
return new AdldapAuthUserProvider ($ app ['hash ' ], $ app ['config ' ]['auth.model ' ]);
36
36
});
37
37
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace Adldap \Laravel \Tests ;
4
4
5
- use Mockery ;
6
- use Adldap \Models \User ;
7
5
use Adldap \Laravel \Facades \Adldap ;
8
- use Illuminate \ Support \ Facades \ Auth ;
6
+ use Adldap \ Models \ User ;
9
7
use Illuminate \Support \Facades \App ;
8
+ use Illuminate \Support \Facades \Auth ;
9
+ use Mockery ;
10
10
11
11
class AdldapTest extends FunctionalTestCase
12
12
{
@@ -52,8 +52,8 @@ public function testAuthPasses()
52
52
53
53
$ rawAttributes = [
54
54
'samaccountname ' => ['jdoe ' ],
55
-
56
- 'cn ' => ['John Doe ' ],
55
+
56
+ 'cn ' => ['John Doe ' ],
57
57
];
58
58
59
59
$ adUser = (new User ([], $ mockedBuilder ))->setRawAttributes ($ rawAttributes );
@@ -122,8 +122,8 @@ public function testAuthFailsWhenUserFound()
122
122
123
123
$ rawAttributes = [
124
124
'samaccountname ' => ['jdoe ' ],
125
-
126
- 'cn ' => ['John Doe ' ],
125
+
126
+ 'cn ' => ['John Doe ' ],
127
127
];
128
128
129
129
$ adUser = (new User ([], $ mockedBuilder ))->setRawAttributes ($ rawAttributes );
Original file line number Diff line number Diff line change 4
4
5
5
use Adldap \Laravel \Traits \AdldapUserModelTrait ;
6
6
use Illuminate \Auth \Authenticatable ;
7
- use Illuminate \Database \Eloquent \Model ;
8
7
use Illuminate \Auth \Passwords \CanResetPassword ;
9
8
use Illuminate \Contracts \Auth \Authenticatable as AuthenticatableContract ;
10
9
use Illuminate \Contracts \Auth \CanResetPassword as CanResetPasswordContract ;
10
+ use Illuminate \Database \Eloquent \Model ;
11
11
12
12
class User extends Model implements AuthenticatableContract, CanResetPasswordContract
13
13
{
You can’t perform that action at this time.
0 commit comments