Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to complete GA setup because no field to insert TOTP code to confirm #66

Closed
n2diving-dgx opened this issue Aug 13, 2020 · 2 comments

Comments

@n2diving-dgx
Copy link

n2diving-dgx commented Aug 13, 2020

Install 1.1 via composer (see below for details) on clean install of Luma Store 2.4.0...
Configure enable GA for Customer = yes
Frontend Create customer account, logout
Login to customer account, enable for TFA/GA
Unable to complete GA setup because no field to insert TOTP code to confirm
However subsequent attempts to login to customer account fail, even with correct password and/or password reset

no-confirm-code

Install TFA 1.1


dotDEV:~/www/current$ composer require --update-no-dev magetarian/module-customer-tfa
Using version ^1.1 for magetarian/module-customer-tfa
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies
Package operations: 1 install, 0 updates, 0 removals
  - Installing magetarian/module-customer-tfa (1.1.0): Downloading (100%)
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.                                            
Writing lock file
Generating autoload files
37 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
dotDEV:~/www/current$ php7.4 -f bin/magento module:enable --clear-static-content Magetarian_CustomerTwoFactorAuth                                                   
The following modules have been enabled:
- Magetarian_CustomerTwoFactorAuth

To make sure that the enabled modules are properly registered, run 'setup:upgrade'.
Cache cleared successfully.
Generated classes cleared successfully. Please run the 'setup:di:compile' command to generate classes.                                                    
Generated static view files cleared successfully.
dotDEV:~/www/current$ ~/rebuild-M24.sh
+ echo Rebuilding Magento 2.4
Rebuilding Magento 2.4
+ cat /etc/centos-release
CentOS Linux release 7.8.2003 (Core)
+ /usr/local/apache/bin/httpd -v
Server version: Apache/2.4.46 (Unix)
Server built:   Aug 11 2020 14:47:55
+ mysql -V
mysql  Ver 14.14 Distrib 5.7.31, for Linux (x86_64) using  EditLine wrapper
+ php74 -v
PHP 7.4.8 (cli) (built: Aug 11 2020 15:03:47) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.8, Copyright (c), by Zend Technologies
+ php74 /usr/local/bin/composer -V
Composer version 1.10.10 2020-08-03 11:35:19
+ curl -s -XGET https://localhost:9200
+ grep 'cluster_name\|number'
+ xargs -n2 '-d\n'
  "cluster_name" : "elasticsearch",     "number" : "7.8.1",
+ cd /home/dotdev/www/current
+ php7.4 bin/magento --no-ansi maintenance:enable
Enabled maintenance mode
+ rm -rf pub/static/_requirejs var/view_preprocessed pub/static/frontend/ pub/static/adminhtml/ generated/code/
+ find var generated vendor pub/static pub/media app/etc -type f -exec chmod u+w '{}' +
+ find var generated vendor pub/static pub/media app/etc -type d -exec chmod u+w '{}' +
+ chmod o-rwx app/etc/env.php
+ chmod a+x bin/magento
+ php7.4 bin/magento --quiet --no-ansi setup:upgrade
Reading /home/dotdev/www/current/composer.json
Loading config file /home/dotdev/.config/composer/auth.json
Loading config file /home/dotdev/www/current/composer.json
Checked CA file /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem: valid
Reading /home/dotdev/.config/composer/composer.json
Loading config file /home/dotdev/.config/composer/auth.json
Loading config file /home/dotdev/.config/composer/composer.json
Loading config file /home/dotdev/.config/composer/auth.json
Reading /home/dotdev/.config/composer/auth.json
Reading /home/dotdev/www/current/vendor/composer/installed.json
Reading /home/dotdev/www/current/composer.lock
Checking for "magento/composer-root-update-plugin: 1.0.0" for the Web Setup Wizard...
Reading /home/dotdev/www/current/var/vendor/magento/composer-root-update-plugin/composer.json
Loading config file /home/dotdev/.config/composer/auth.json
Loading config file /home/dotdev/www/current/var/vendor/magento/composer-root-update-plugin/composer.json
No Web Setup Wizard update needed for magento/composer-root-update-plugin; version 1.0.0 is already in /home/dotdev/www/current/var. 
+ php7.4 bin/magento --quiet --no-ansi setup:di:compile
+ php7.4 bin/magento --quiet --no-ansi setup:static-content:deploy -f
+ php7.4 bin/magento --quiet --no-ansi indexer:reindex
+ php7.4 bin/magento --no-ansi deploy:mode:set developer
Enabled developer mode.
+ php7.4 bin/magento --quiet --no-ansi cache:enable
+ php7.4 bin/magento --quiet --no-ansi cache:clean
+ php7.4 bin/magento --quiet --no-ansi cache:flush
+ php7.4 bin/magento --no-ansi maintenance:disable
Disabled maintenance mode
+ php7.4 bin/magento --no-ansi cron:run
Ran jobs by schedule.
+ echo 'Done!'
Done!
+ exit
dotDEV:~/www/current$
@sashas777
Copy link
Collaborator

@n2diving-dgx
Hi,
We did some updates. Can you get from composer a new version and do:
bin/magento --quiet --no-ansi setup:upgrade

The customer attribute provides has been added to admin customer edit screen. This way you can select 2FA providers for a customer.

Before you will login reset 2FA for your customer the admin panel. When you will enable Google 2FA from customer account section its not necessary to confirm code. The code will be confirmed once you will login.

Let us know if it solves the issue, please.

@atishgoswami
Copy link
Contributor

Hello @n2diving-dgx,

As there is no updates on this issue we are guessing the issue is resolved at your end.

I am closing this issue, feel free to re-open the issue if it's still replicable at your end

Regards,
Atish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants