Unable to enable 2 factor authentication

I can’t scan the barcode to enable 2-factor authentication. The barcode itself doesn’t load (I’m attaching a screenshot). I’ve done a lot of things:

  1. Tried using different browsers (Google, Firefox)
  2. Tried taking the line after data:image/png;base64 from HTML and converting it to a barcode (it gives an error).
  3. Disabled POLICY_CSRF_STRICTNESS
  4. Checked and installed the qrencode package
  5. Rebooted the server

After all the steps, the barcode still doesn’t work, it’s not displayed for scanning…

1

I may be wrong here, but it does not seem to be related to your server. The canvas image data has be to accessed by the browser to load such images. Check that once mate.

Probably the problem is not in the browser. There are no errors in the console (screenshot)

What do you see when you run:
v-add-user-2fa username

it depends currently on third party service to create the QR code

1 Like

After entering I get: sudo: /usr/local/hestia/bin/v-list-user-2fa: command not found

That command doesn’t exists :expressionless:

root@web07:/usr/local/hestia/bin# ls v-list-user-*

v-list-user-auth-log v-list-user-backup-restic v-list-user-files-restic v-list-user-notifications v-list-user-packages

v-list-user-backup v-list-user-backups v-list-user-ips v-list-user-ns v-list-user-ssh-key

v-list-user-backup-exclusions v-list-user-backups-restic v-list-user-log v-list-user-package v-list-user-stats

1 Like

In the end, with the help of Gemini, I came to the decision to install 2-factor directly through the command. Everything worked out. I’m closing the topic.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.