mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 21:43:17 +00:00
Update SecuritySettings, add devices to security view
This commit is contained in:
parent
00c47be203
commit
3595552f02
1 changed files with 7 additions and 1 deletions
|
@ -8,6 +8,7 @@ use App\Media;
|
|||
use App\Profile;
|
||||
use App\User;
|
||||
use App\UserFilter;
|
||||
use App\UserDevice;
|
||||
use App\Util\Lexer\PrettyNumber;
|
||||
use Auth;
|
||||
use DB;
|
||||
|
@ -27,7 +28,12 @@ trait SecuritySettings
|
|||
->limit(20)
|
||||
->get();
|
||||
|
||||
return view('settings.security', compact('activity', 'user'));
|
||||
$devices = UserDevice::whereUserId($user->id)
|
||||
->orderBy('created_at', 'desc')
|
||||
->limit(5)
|
||||
->get();
|
||||
|
||||
return view('settings.security', compact('activity', 'user', 'devices'));
|
||||
}
|
||||
|
||||
public function securityTwoFactorSetup(Request $request)
|
||||
|
|
Loading…
Reference in a new issue