mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-17 02:41:13 +01:00
Add route to get TwoFAccount with sensitive data
This commit is contained in:
parent
8253d28102
commit
27dd64a965
@ -93,6 +93,18 @@ public function show(TwoFAccount $twofaccount)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display the specified resource with all attributes.
|
||||||
|
*
|
||||||
|
* @param \App\TwoFAccount $twofaccount
|
||||||
|
* @return \Illuminate\Http\Response
|
||||||
|
*/
|
||||||
|
public function showWithSensitive(TwoFAccount $twofaccount)
|
||||||
|
{
|
||||||
|
return response()->json($twofaccount->makeVisible(['uri', 'secret', 'algorithm']), 200);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Save new order.
|
* Save new order.
|
||||||
*
|
*
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
Route::delete('twofaccounts/batch', 'TwoFAccountController@batchDestroy');
|
Route::delete('twofaccounts/batch', 'TwoFAccountController@batchDestroy');
|
||||||
Route::patch('twofaccounts/reorder', 'TwoFAccountController@reorder');
|
Route::patch('twofaccounts/reorder', 'TwoFAccountController@reorder');
|
||||||
|
Route::get('twofaccounts/{twofaccount}/withSensitive', 'TwoFAccountController@showWithSensitive');
|
||||||
Route::apiResource('twofaccounts', 'TwoFAccountController');
|
Route::apiResource('twofaccounts', 'TwoFAccountController');
|
||||||
Route::patch('group/accounts', 'GroupController@associateAccounts');
|
Route::patch('group/accounts', 'GroupController@associateAccounts');
|
||||||
Route::apiResource('groups', 'GroupController');
|
Route::apiResource('groups', 'GroupController');
|
||||||
|
Loading…
Reference in New Issue
Block a user