Skip to content

Commit

Permalink
[4.0] Click Saving error of two-factor alternate of profile in PHP 8 (#…
Browse files Browse the repository at this point in the history
…32540)

Co-authored-by: Richard Fath <[email protected]>
  • Loading branch information
himanshu007-creator and richard67 authored Mar 10, 2021
1 parent 42a70ea commit b11e957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion administrator/components/com_users/src/Model/UserModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function save($data)
}

// Handle the two factor authentication setup
if (array_key_exists('twofactor', $data))
if (isset($data['twofactor']['method']))
{
$twoFactorMethod = $data['twofactor']['method'];

Expand Down

0 comments on commit b11e957

Please sign in to comment.