0

after updating my Laravel and Adldap2 to version 6.0,i'm receiving this error when i'm trying to authenticate,

**

The 'email' key is missing from the given credentials array

**

what is the reason behind that ?

i haven't changed anything in my LoginController or Auth.php or anywhere else,

my config/auth.php

<?php

return [


    'defaults' => [
        'guard' => 'web',
        'passwords' => 'users',
    ],


    'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],

        'api' => [
            'driver' => 'token',
            'provider' => 'users',
        ],
    ],



    'providers' => [
        'users' => [
            'driver' => 'ldap', //'eloquent',
            'model' => App\User::class,     
            'table' => 'users',
        ],

    ],


    'passwords' => [
        'users' => [
            'provider' => 'users',
            'table' => 'password_resets',
            'expire' => 60,
        ],
    ],

];

1 Answers1

0

After upgrading to Laravel 6 and adldap 6 You need to republish config files.

https://github.com/Adldap2/Adldap2-Laravel/blob/master/docs/upgrading.md

Lukáš Irsák
  • 1,092
  • 1
  • 14
  • 23