fix 2 step confirmation password is now checked if it is enabled

This commit is contained in:
peaklabs-dev
2024-10-24 16:20:01 +02:00
parent 621e063bf1
commit ff60189285
10 changed files with 10 additions and 10 deletions

View File

@@ -78,7 +78,7 @@ class AdminView extends Component
public function delete($id, $password)
{
if (! InstanceSettings::get('disable_two_step_confirmation')) {
if (! data_get(InstanceSettings::get(), 'disable_two_step_confirmation')) {
if (! Hash::check($password, Auth::user()->password)) {
$this->addError('password', 'The provided password is incorrect.');