Two Factor Authentication 2FA. To be continued. The package also includes fields that appear in the user's profile.
v9.10.20 tested on version.
Testing and most importantly checking the language file. My English is not the best
I was thinking about other files as well, but in the end the necessary modification was made to the maincore.php file.
It monitors the IP address and the last successful login (48 hours). If the IP address changes or 48 hours have elapsed since the login, the two factor authentication interface is displayed.
Currently the system works properly with the basic profile editing interface. If you use separate tabs when editing the profile, the operation will only work properly if you switch to the appropriate tab where you have enabled the 2 pieces fields(2FA). In a new release, if required this will be resolved.