nextcloud / twofactor_totp

🔑 Second factor TOTP (RFC 6238) provider for Nextcloud
https://apps.nextcloud.com/apps/twofactor_totp
GNU Affero General Public License v3.0
282 stars 57 forks source link

Two-factor challenge failed #1528

Open 10bias opened 2 months ago

10bias commented 2 months ago

Steps to reproduce

After some time the two factor code does not work. I have to reboot the server and than it will work for some time.

  1. Login with username and password
  2. enter the two factor code
  3. code was not accepted
  4. enter an new two factor code
  5. code was not accepted
  6. reboot the server
  7. login
  8. enter two factor code
  9. code will be accepted

In nextcloud i can see this warning

Two-factor challenge failed: Tobias (Remote IP: xxxxxx)

Expected behaviour

The two factor works without a reboot.

Actual behaviour

The two factor works randomly after some time not.

Server configuration

Operating system: Linux 4.18.0-477 -> Nextcloud is running in docker containers

Web server: nginx/1.20.2 (fpm-fcgi)

Database: pgsql PostgreSQL 14.2

PHP version: 8.2.18

Version: (see admin page) 28.0.4 - 28.0.4.1

Updated from an older version or fresh install:

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your server installation folder

The content of config/config.php:

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or

Insert your config.php content here
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Client configuration

Browser:

Operating system:

Logs

Web server error log
Insert your webserver log here
Server log (data/nextcloud.log)
Two-factor challenge failed: Tobias (Remote IP: xxxxxx)
Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log