cypht icon indicating copy to clipboard operation
cypht copied to clipboard

Unable to generate 2 factor authentication QR code

Open mzch opened this issue 3 years ago • 5 comments

💬 Question

I enabled 2fa module and login but 'Unable to generate 2 factor authentication QR code`. I found #134 but folders' permission is correct (owner is www-data) Could anyone tell me how to fix this issue?

OS: Debian 10.6 PHP: PHP 7.3.19-1~deb10u1

  • log
[Mon Sep 28 04:16:53.767605 2020] [proxy_fcgi:error] [pid 23468:tid 139766765324032] [client 118.243.18.144:50955] AH01071: Got error 'PHP message: Array\n(\n    [0] => Using Hm_PHP_Session with Hm_Auth_DB\n    [1] => Using DB user configuration\n    [2] => Using sapi: fpm-fcgi\n    [3] => Request type: HTTP\n    [4] => Request path: /\n    [5] => TLS request: 1\n    [6] => Mobile request: 0\n    [7] => Page ID: settings\n    [8] => CACHE backend using: redis\n    [9] => LOGGED IN\n    [10] => Deleting cookie: name: hm_msgs, lifetime: 1601288213, path: /, domain: uixmail.com, secure: 1, html_only 1\n    [11] => TRANSLATION NOT FOUND :Estonian:\n    [12] => TRANSLATION NOT FOUND :Too Dark:\n    [13] => TRANSLATION NOT FOUND :Default message sort order:\n    [14] => TRANSLATION NOT FOUND :Unable to generate 2 factor authentication QR code:\n    [15] => PHP version 7.3.19-1~deb10u1\n    [16] => Zend version 3.3.19\n    [17] => Peak Memory: 4096\n    [18] => PID: 23453\n    [19] => Included files: 78\n)\n'

mzch avatar Sep 28 '20 11:09 mzch

DId you also confirm that you have PHP GD support enabled? I have php7.4-gd installed on my Debian unstable setup. We need GD to render the barcode image.

jasonmunro avatar Sep 29 '20 20:09 jasonmunro

Yes, I have php-gd.

mzch avatar Sep 30 '20 03:09 mzch

as i see it in the Config. Did you tryed to set-up a 2fa key in modules/2fa/2fa.ini?

cptsanifair avatar Feb 08 '21 23:02 cptsanifair

@mzch We need more info.

marclaporte avatar Jul 31 '22 19:07 marclaporte