-
Notifications
You must be signed in to change notification settings - Fork 5
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
Google Authenticator - QR Code doesn't show up #53
Comments
Same issue on Version: 1.14.2. QR would be so much easier than typing a code. |
@InnovationBuddy @G-Burnett Could you please show where "the QR Code does not show up"? |
![2FA](https://github.com/humhub/twofa/assets/122267201/59b255f9-7c77-4b2d-bad2-71bca467b10b)
Hi Yuriy
Thank you for your interest in this issue. Attached screen grab. Our HumHub is self-hosted, don’t know if that makes a difference.
Best regards
Gary Burnett
From: Yuriy Bakhtin ***@***.***>
Sent: 07 June 2023 08:18
To: humhub/twofa ***@***.***>
Cc: G Burnett ***@***.***>; Mention ***@***.***>
Subject: Re: [humhub/twofa] Google Authenticator - QR Code doesn't show up (Issue #53)
@InnovationBuddy<https://github.com/InnovationBuddy> @G-Burnett<https://github.com/G-Burnett> Could you please show where "the QR Code does not show up"?
For me it works:
[test_google_authenticator]<https://user-images.githubusercontent.com/6995524/243956484-5067141c-23bd-431a-81d1-5e73e60c86f4.png>
—
Reply to this email directly, view it on GitHub<#53 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5E2MQMD75YUOZGX3KZNAKDXKATJNANCNFSM6AAAAAAURKWUJA>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
…________________________________
[The Solent Schools]
G Burnett
Network Manager
The Solent Schools
________________________________
The De Curci Trust, a charitable company limited by guarantee registered in England and Wales with company number 10646541.
Registered office address: Springfield School, Central Road, Drayton, Portsmouth, Hampshire, United Kingdom. PO6 1QY
Trustees: C Batstone, A Cufley, S Hamilton, A Eales, D Smith, S Spivey.
|
@G-Burnett Could you inspect by your browser what you have here, probably you will find there some errors which help me to find a bug faster? : Also please tell what browser and PHP version you use, thanks. |
Hi,
This error was reported in the browser which seems to refer to the 2fa process.
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'nonce-orR5Fp4nSTynktT6LErcqG8U' 'unsafe-inline' 'report-sample'". Note that 'unsafe-inline' is ignored if either a hash or nonce value is present in the source list.
Best regards
Gary
From: Yuriy Bakhtin ***@***.***>
Sent: 07 June 2023 15:42
To: humhub/twofa ***@***.***>
Cc: G Burnett ***@***.***>; Mention ***@***.***>
Subject: Re: [humhub/twofa] Google Authenticator - QR Code doesn't show up (Issue #53)
@G-Burnett<https://github.com/G-Burnett> Could you inspect by your browser what you have here, probably you will find there some errors which help me to find a bug faster? :
[inspect_auth_img]<https://user-images.githubusercontent.com/6995524/244103092-8cddc9a6-7025-4422-a7fd-6602e90dcc11.png>
Also please tell what browser and PHP version you use, thanks.
—
Reply to this email directly, view it on GitHub<#53 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5E2MQI65X7K3IWFLSIGOM3XKCHLJANCNFSM6AAAAAAURKWUJA>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
…________________________________
[The Solent Schools]
G Burnett
Network Manager
The Solent Schools
________________________________
The De Curci Trust, a charitable company limited by guarantee registered in England and Wales with company number 10646541.
Registered office address: Springfield School, Central Road, Drayton, Portsmouth, Hampshire, United Kingdom. PO6 1QY
Trustees: C Batstone, A Cufley, S Hamilton, A Eales, D Smith, S Spivey.
|
Google Chrome Version 114.0.5735.110
PHP - Version - 8.0.28
From: Yuriy Bakhtin ***@***.***>
Sent: 07 June 2023 15:42
To: humhub/twofa ***@***.***>
Cc: G Burnett ***@***.***>; Mention ***@***.***>
Subject: Re: [humhub/twofa] Google Authenticator - QR Code doesn't show up (Issue #53)
@G-Burnett<https://github.com/G-Burnett> Could you inspect by your browser what you have here, probably you will find there some errors which help me to find a bug faster? :
[inspect_auth_img]<https://user-images.githubusercontent.com/6995524/244103092-8cddc9a6-7025-4422-a7fd-6602e90dcc11.png>
Also please tell what browser and PHP version you use, thanks.
—
Reply to this email directly, view it on GitHub<#53 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5E2MQI65X7K3IWFLSIGOM3XKCHLJANCNFSM6AAAAAAURKWUJA>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
…________________________________
[The Solent Schools]
G Burnett
Network Manager
The Solent Schools
________________________________
The De Curci Trust, a charitable company limited by guarantee registered in England and Wales with company number 10646541.
Registered office address: Springfield School, Central Road, Drayton, Portsmouth, Hampshire, United Kingdom. PO6 1QY
Trustees: C Batstone, A Cufley, S Hamilton, A Eales, D Smith, S Spivey.
|
Another screen grab 😊
***@***.***
From: Yuriy Bakhtin ***@***.***>
Sent: 07 June 2023 15:42
To: humhub/twofa ***@***.***>
Cc: G Burnett ***@***.***>; Mention ***@***.***>
Subject: Re: [humhub/twofa] Google Authenticator - QR Code doesn't show up (Issue #53)
@G-Burnett<https://github.com/G-Burnett> Could you inspect by your browser what you have here, probably you will find there some errors which help me to find a bug faster? :
[inspect_auth_img]<https://user-images.githubusercontent.com/6995524/244103092-8cddc9a6-7025-4422-a7fd-6602e90dcc11.png>
Also please tell what browser and PHP version you use, thanks.
—
Reply to this email directly, view it on GitHub<#53 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5E2MQI65X7K3IWFLSIGOM3XKCHLJANCNFSM6AAAAAAURKWUJA>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
…________________________________
[The Solent Schools]
G Burnett
Network Manager
The Solent Schools
________________________________
The De Curci Trust, a charitable company limited by guarantee registered in England and Wales with company number 10646541.
Registered office address: Springfield School, Central Road, Drayton, Portsmouth, Hampshire, United Kingdom. PO6 1QY
Trustees: C Batstone, A Cufley, S Hamilton, A Eales, D Smith, S Spivey.
|
@G-Burnett Hello, I have reread this again:
and probably the fix from PR #56 may solve it. |
Turning off CSP in Edge browser allows QR to be displayed. Will test fix shortly. Thank you.
From: Yuriy Bakhtin ***@***.***>
Sent: 08 June 2023 10:59
To: humhub/twofa ***@***.***>
Cc: G Burnett ***@***.***>; Mention ***@***.***>
Subject: Re: [humhub/twofa] Google Authenticator - QR Code doesn't show up (Issue #53)
@G-Burnett<https://github.com/G-Burnett> Hello, I have reread this again:
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'nonce-orR5Fp4nSTynktT6LErcqG8U' 'unsafe-inline' 'report-sample'". Note that 'unsafe-inline' is ignored if either a hash or nonce value is present in the source list.
and probably the fix from PR #56<#56> may solve it.
It would be good if you can to test this fix https://github.com/humhub/twofa/pull/56/files#diff-b6440feae029860743b55182fe3a1839c32fe1264481fc76732778db87e0d23dR43 on your side, because I still cannot reproduce it on the same browser and PHP versions as you have.
Thanks.
—
Reply to this email directly, view it on GitHub<#53 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5E2MQMM2RZEIDQVFSYCFZ3XKGO6VANCNFSM6AAAAAAURKWUJA>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
…________________________________
[The Solent Schools]
G Burnett
Network Manager
The Solent Schools
________________________________
The De Curci Trust, a charitable company limited by guarantee registered in England and Wales with company number 10646541.
Registered office address: Springfield School, Central Road, Drayton, Portsmouth, Hampshire, United Kingdom. PO6 1QY
Trustees: C Batstone, A Cufley, S Hamilton, A Eales, D Smith, S Spivey.
|
Hi Yuriy, I can confirm that after applying this fix the QR code is now displayed. Thank you :-) |
@yurabakhtin @G-Burnett Thanks, I've just released 1.1.3 |
It's a great and very useful module!
The email function works perfectly. However, if I want to use the Google Authentication function, the QR Code does not show up.
Currently, I'm using HumHub 1.13.1
It would be great if you have any solution for me what I can change or maybe you can make some code adjustments so it works.
Thanks so much!
The text was updated successfully, but these errors were encountered: