magespecialist/m2-MSP_TwoFactorAuth

Call to non-existing methods

GeoffreyDijkstra opened this issue ยท 6 comments

Steps to reproduce:

  1. ... -> Security Suite -> Two Factor Authentication -> Enable = yes.
  2. Save Configuration
  3. Flush cache
  4. Admin user -> 2FA -> Enable = yes.
  5. Save user
  6. Now you will be asked for scanning the QR Code, but the image is broken:
    image
  7. Follow link of the image:
    error

Because of the requirement in composer.json "endroid/qrcode": "^1.7" it installed version 1.9.3 in which those methods don't exist anymore. Also saw that on their github 1.7 tags don't exists.

So I can think of 2 possible solutions:

  1. Fix composer.json to include the correct package version endriod/qrcode
  2. Update the code to use their new package version (also update composer.json to reflect that version number).

Hopefully you can provide an solution asap ๐Ÿ˜„

Don't think this is really relevant for the issue but:
Tested on latest Magento 2 CE & EE 2.1.6
Installed version of endroid/qrcode = 1.9.3
Installed version of msp/twofactorauth = 0.1.4

Also I couldn't return from the "Scan QR Code" screen by a cancel button or something and had to use your command line command: php bin/magento msp:security:tfa:disable to get back in the system ๐Ÿ˜ข

Just upgrade endroid/qrcode via composer.
Seems you are using an outdated module and we have to change our base version in composer.json file. They changed some method name.

You need version 2.1.x, there was a mistake in our composer.json

We just fiexed in our composer.json file if you wish to upgrade it.

Will update and see what happens ๐Ÿ˜„

Thx it works! ๐ŸŽ‰