Skip to content

First time sign in when 2FA is forced QR code not recognized/wrong generated #1161

@Koky999

Description

@Koky999

Steps to reproduce

  1. Force 2FA in admin
  2. Login as user
  3. Try to scan QR code shown when first log in after force 2FA applied

Expected behaviour

After scanning code with TOTP app it should add generator to the app.

Actual behaviour

When user sign in, QR code show up, if I scan it with TOTP app (tried Google Authenticator and andOTP) but app fails with message "Cannot recognize the code". Barcode probably wrong generated, because it has only text "undefined" in in.

alt text

Server configuration

Operating system: CentOS 7

Web server: Apache 2.4.6

Database: mysql 5.5.60

PHP version: 7.4.25

Version: 22.2.3

Updated from an older version or fresh install: Updated from older version

List of activated apps:

Enabled:

  • accessibility: 1.8.0
  • activity: 2.15.0
  • admin_audit: 1.12.0
  • apporder: 0.13.0
  • bruteforcesettings: 2.2.0
  • camerarawpreviews: 0.7.15
  • circles: 22.1.1
  • cloud_federation_api: 1.5.0
  • comments: 1.12.0
  • contactsinteraction: 1.3.0
  • dav: 1.19.0
  • external: 3.9.0
  • federatedfilesharing: 1.12.0
  • federation: 1.12.0
  • files: 1.17.0
  • files_downloadactivity: 1.11.1
  • files_external: 1.13.0
  • files_pdfviewer: 2.3.1
  • files_rightclick: 1.1.0
  • files_sharing: 1.14.0
  • files_texteditor: 2.14.0
  • files_trackdownloads: 1.11.0
  • files_trashbin: 1.12.0
  • files_versions: 1.15.0
  • files_videoplayer: 1.11.0
  • firstrunwizard: 2.11.0
  • guests: 2.1.0
  • logreader: 2.7.0
  • lookup_server_connector: 1.10.0
  • nextcloud_announcements: 1.11.0
  • notifications: 2.10.1
  • oauth2: 1.10.0
  • password_policy: 1.12.0
  • photos: 1.4.0
  • privacy: 1.6.0
  • provisioning_api: 1.12.0
  • recommendations: 1.1.0
  • serverinfo: 1.12.0
  • settings: 1.4.0
  • sharebymail: 1.12.0
  • side_menu: 2.0.1
  • support: 1.5.0
  • survey_client: 1.10.0
  • systemtags: 1.12.0
  • text: 3.3.0
  • theming: 1.13.0
  • theming_customcss: 1.10.0
  • twofactor_admin: 3.1.0
  • twofactor_backupcodes: 1.11.0
  • twofactor_email: 2.1.1
  • twofactor_totp: 6.1.0
  • updatenotification: 1.12.0
  • user_ldap: 1.12.1
  • user_usage_report: 1.6.0
  • viewer: 1.6.0
  • workflowengine: 2.4.0

Disabled:

  • dashboard
  • encryption
  • registration
  • twofactor_gateway
  • user_status
  • weather_status

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: Firefox 78.7.1esr

Operating system: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions