From 59fdf5b77a625de20f4ab4c7985a1ad25e72b1c4 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 16 Feb 2019 07:20:25 +0100 Subject: [PATCH] Updates to the login procedure [skip ci] --- app/Http/Controllers/Auth/LoginController.php | 2 ++ config/ldap.php | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index f825140819..1897748211 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -29,6 +29,7 @@ use FireflyIII\User; use Illuminate\Cookie\CookieJar; use Illuminate\Foundation\Auth\AuthenticatesUsers; use Illuminate\Http\Request; +use Log; /** * Class LoginController @@ -69,6 +70,7 @@ class LoginController extends Controller */ public function login(Request $request) { + Log::channel('audit')->info(sprintf('User is trying to login using "%s"', $request->get('email'))); $this->validateLogin($request); // If the class is using the ThrottlesLogins trait, we can automatically throttle diff --git a/config/ldap.php b/config/ldap.php index 137e47f7e2..168b755758 100644 --- a/config/ldap.php +++ b/config/ldap.php @@ -164,7 +164,6 @@ return [ | */ - //'domain_controllers' => explode(' ', env('ADLDAP_CONTROLLERS', '127.0.0.1')), 'hosts' => explode(' ', env('ADLDAP_CONTROLLERS', '127.0.0.1')), /* @@ -220,8 +219,6 @@ return [ | */ - //'admin_username' => env('ADLDAP_ADMIN_USERNAME', ''), - //'admin_password' => env('ADLDAP_ADMIN_PASSWORD', ''), 'username' => env('ADLDAP_ADMIN_USERNAME', ''), 'password' => env('ADLDAP_ADMIN_PASSWORD', ''),