mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
[admin] remove two-step authentication
This commit is contained in:
@@ -287,4 +287,14 @@ class UserController extends Controller
|
||||
return $this->success(['success' => $result]);
|
||||
}
|
||||
|
||||
public function removeTwoStepAuthentication(Request $request): array
|
||||
{
|
||||
$user = Auth::user();
|
||||
$request->validate([
|
||||
'uid' => 'required',
|
||||
]);
|
||||
$result = $this->repository->removeTwoStepAuthentication($user, $request->uid, );
|
||||
return $this->success(['success' => $result]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user