WIP: Road to 1.0.0 #1
|
@ -81,14 +81,16 @@ class LoginController extends Controller
|
||||||
|
|
||||||
public function authenticated(Request $request, User $user)
|
public function authenticated(Request $request, User $user)
|
||||||
{
|
{
|
||||||
if ($user->originalIP !== $request->ip())
|
if (!config('demo.is_enabled')) {
|
||||||
{
|
if ($user->originalIP !== $request->ip())
|
||||||
Log::alert('User IP address changed from last login. Updating.', [
|
{
|
||||||
'prev' => $user->originalIP,
|
Log::alert('User IP address changed from last login. Updating.', [
|
||||||
'new' => $request->ip()
|
'prev' => $user->originalIP,
|
||||||
]);
|
'new' => $request->ip()
|
||||||
$user->originalIP = $request->ip();
|
]);
|
||||||
$user->save();
|
$user->originalIP = $request->ip();
|
||||||
|
$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')
|
mix.js(['resources/js/app.js', 'resources/js/application_charts.js', 'resources/js/calendar.js'], 'public/js')
|
||||||
.sass('resources/sass/app.scss', 'public/css');
|
.sass('resources/sass/app.scss', 'public/css');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue