mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 04:56:03 +03:00
[GH-ISSUE #134] Unable to generate 2 factor authentication QR code #110
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#110
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dhuyvetter on GitHub (Oct 10, 2016).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/134
Originally assigned to: @jasonmunro on GitHub.
Is there a specific PHP module or something that needs to be enabled to generate QR codes when 2FA is enabled? I have edited the 2fa init and moved it to app_data/2fa.ini but when I check "2 Factor Authentication" under "Site Settings" I get an error saying "Unable to generate 2 factor authentication QR code"
@jasonmunro commented on GitHub (Oct 10, 2016):
We use a third party library for QR code generation (http://phpqrcode.sourceforge.net/), which does require that you have the PHP GD extension installed. On my Debian PHP 7 setup I have this package installed:
$ dpkg -l | grep php | grep -i gd
ii php7.0-gd 7.0.11-1 amd64 GD module for PHP
Hopefully installing that will solve the problem.
@dhuyvetter commented on GitHub (Oct 11, 2016):
I'm still running PHP 5.5:
I installed the PHP GD library:
and restarted Apache:
But still get
@jasonmunro commented on GitHub (Oct 11, 2016):
Bummer, I was hoping for an easy fix :) Next thing to try is to check the PHP error log while loading the settings page and running Cypht in debug mode (see section 5 here for info about debug mode: https://cypht.org/install.html) .Hopefully that will give us a clue about the issue. If not, I will whip up some patches to the code to dig in more.
@dhuyvetter commented on GitHub (Oct 12, 2016):
I mananged to figure it out: it was a rights issue. Since I installed
Cypht with my root account, the app_data was only writeable by root, not
by www-data, I changed the permissions and now am getting a QR code
$/var/lib/hm3# ls -la
total 4
drwxr-xr-x 5 www-data root 51 Oct 10 09:28 .
drwxr-xr-x 35 root root 4096 Oct 7 07:45 ..
drwxr-xr-x 2 root root 40 Oct 10 11:07 app_data
drwxr-xr-x 2 www-data root 6 Oct 7 07:45 attachments
drwxr-xr-x 2 www-data root 6 Oct 7 07:45 users
Dimitri Dhuyvetter
https://dhuyvetter.eu
+27 846 054 999
Jason Munro schreef op 2016-10-11 17:40:
Links:
[1]
https://github.com/jasonmunro/cypht/issues/134#issuecomment-252955507
[2]
https://github.com/notifications/unsubscribe-auth/AATvSKYT9lc-HEak5fwvxBUIQZKUumZjks5qy63WgaJpZM4KSeZ3
@jasonmunro commented on GitHub (Oct 12, 2016):
Thanks for the follow up. Glad you got it sorted. Closing this issue since this is resolved. Feel free to re-open or create a new one if you find another problem!