Fixed broken Laravel Mix
Also disabled IP history logger for demo mode
This commit is contained in:
parent
3f4bc28fd4
commit
e6f84cd09a
|
@ -81,6 +81,7 @@ class LoginController extends Controller
|
|||
|
||||
public function authenticated(Request $request, User $user)
|
||||
{
|
||||
if (!config('demo.is_enabled')) {
|
||||
if ($user->originalIP !== $request->ip())
|
||||
{
|
||||
Log::alert('User IP address changed from last login. Updating.', [
|
||||
|
@ -91,4 +92,5 @@ class LoginController extends Controller
|
|||
$user->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
let mix = require('laravel-mix');
|
||||
|
||||
mix.js(['resources/js/app.js', 'resources/js/application_charts.js', 'resources/js/calendar.js'], 'public/js')
|
||||
.sass('resources/sass/app.scss', 'public/css');
|
||||
|
||||
|
|
Loading…
Reference in New Issue