mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Move Authlog to Laravel (#10559)
* Move Authlog to Laravel * Update authlog.blade.php
This commit is contained in:
@@ -27,6 +27,7 @@ namespace App\Http\Controllers;
|
||||
|
||||
use App\Http\Requests\StoreUserRequest;
|
||||
use App\Http\Requests\UpdateUserRequest;
|
||||
use App\Models\AuthLog;
|
||||
use App\Models\Dashboard;
|
||||
use App\Models\User;
|
||||
use App\Models\UserPref;
|
||||
@@ -212,4 +213,13 @@ class UserController extends Controller
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public function authlog()
|
||||
{
|
||||
$this->authorize('manage', User::class);
|
||||
|
||||
return view('user.authlog', [
|
||||
'authlog' => AuthLog::orderBy('datetime', 'DESC')->get(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user