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 generate 2 factor authentication QR code #3

Open
Drudoo opened this issue Oct 30, 2018 · 3 comments
Open

Unable to generate 2 factor authentication QR code #3

Drudoo opened this issue Oct 30, 2018 · 3 comments

Comments

@Drudoo
Copy link

Drudoo commented Oct 30, 2018

Using the environment variable CYPHT_MODULE_2FA=enable i get the error "Unable to generate 2 factor authentication QR code"

@Razvan0925
Copy link
Contributor

Attach to cypht container and try the following to fix:

apk add nano
apk add composer
cd /usr/local/share/cypht
composer install
mv ./modules/2fa/2fa.ini /var/lib/hm3/app_data/
nano ./modules/2fa/2fa.ini

and set up the 2fa_secret variable value.

@justinvoelker
Copy link
Collaborator

While the previous answer would work, it would not persist your config through a container reboot meaning you would have to perform those steps any time the container restarted.

Instead, try the following:

  • On your host machine, create a 2fa.ini file
  • Configure it with your values
  • Mount it as a volume into the container to the destination /var/lib/hm3/app_data/2fa.ini

This should give you working 2 factor authentication that persists across container restarts.

jasonmunro pushed a commit that referenced this issue Nov 12, 2019
fix error 500 for some html emails and for 2fa
@marclaporte
Copy link
Member

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

4 participants