Skip to content

Commit

Permalink
Fix google2fa settings not being enabled (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioribeiro authored and ifox committed Oct 17, 2019
1 parent 1cafa78 commit 702e31a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/Admin/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ protected function indexData($request)
protected function formData($request)
{
$user = $this->authFactory->guard('twill_users')->user();
$with2faSettings = $this->config->get('twill.enabled.users-2fa') && $user->id == $this->request->get('user');
$with2faSettings = $this->config->get('twill.enabled.users-2fa') && $user->id == $request->route('user');;

if ($with2faSettings) {
$google2fa = new Google2FA();
Expand Down

0 comments on commit 702e31a

Please sign in to comment.