Updates to the login procedure [skip ci]

This commit is contained in:
James Cole 2019-02-16 07:20:25 +01:00
parent e28cfade8d
commit 59fdf5b77a
2 changed files with 2 additions and 3 deletions

View File

@ -29,6 +29,7 @@ use FireflyIII\User;
use Illuminate\Cookie\CookieJar; use Illuminate\Cookie\CookieJar;
use Illuminate\Foundation\Auth\AuthenticatesUsers; use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Log;
/** /**
* Class LoginController * Class LoginController
@ -69,6 +70,7 @@ class LoginController extends Controller
*/ */
public function login(Request $request) public function login(Request $request)
{ {
Log::channel('audit')->info(sprintf('User is trying to login using "%s"', $request->get('email')));
$this->validateLogin($request); $this->validateLogin($request);
// If the class is using the ThrottlesLogins trait, we can automatically throttle // If the class is using the ThrottlesLogins trait, we can automatically throttle

View File

@ -164,7 +164,6 @@ return [
| |
*/ */
//'domain_controllers' => explode(' ', env('ADLDAP_CONTROLLERS', '127.0.0.1')),
'hosts' => 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', ''), 'username' => env('ADLDAP_ADMIN_USERNAME', ''),
'password' => env('ADLDAP_ADMIN_PASSWORD', ''), 'password' => env('ADLDAP_ADMIN_PASSWORD', ''),