Jako / TwoFactorX

Two-factor authentication for the MODX manager
https://jako.github.io/TwoFactorX/
GNU General Public License v2.0
3 stars 2 forks source link

PHP warning: Undefined array key "enable_totp" #6

Open al5040 opened 6 months ago

al5040 commented 6 months ago

Hello Jako,

In line 49 of the file /core/packages/twofactorx-1.0.5-pl/setup-options.php there is a reference to the value of the array key $defaults['enable_totp'], which does not exist.

This leads to a warning in the error log file.

However in the line 13 of the file $defaults['enable_2fa'] is set, but not used.