salesagility / SuiteCRM-Core

SuiteCRM - Open source CRM for the world
https://www.suitecrm.com
GNU Affero General Public License v3.0
180 stars 133 forks source link

Login not possible after 2FA enabled #432

Open ps-ohanel opened 9 months ago

ps-ohanel commented 9 months ago

Enabling 2FA disables user to login

Expected Behavior

Actual Behavior

Steps to Reproduce

  1. Instantiate docker setup for easy local dev: GitHub - jontitmus-code/SuiteCRM8_docker: SuiteCRM Docker Compose Script
    • extend docker-compose.yml with those two lines to override all the php.ini files
    • ./docker/config/php/php.ini:/etc/php/7.4/fpm/php.ini
    • ./docker/config/php/php.ini:/etc/php/7.4/cli/php.ini
  2. Make a new installation of: SuteCRM Version 8.5.0
  3. Setup some SMTP that will enable you to see the sent emails. I used a free account on https://mailtrap.io/
  4. Create a new user
  5. Turn on 2FA checkbox for the user
  6. Try to login
  7. Mail is sent with the 2FA token
  8. Error is triggered on the login screen

Your Environment

scicali commented 9 months ago

duplicate #52