Author |
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 05 February 2021 at 5:56am | IP Logged
|
|
|
Hello,
afterlogic php pro v8.5.1
activating 2FA for any user fails and returns "Wrong PIN"
[12:25:05.07][d29ef860] ===== API: TwoFactorAuth::TwoFactorAuthSave
[12:25:05.08][d29ef860] ApiException
[12:25:05.08][d29ef860] @Time: 0.163
[12:25:05.08][d29ef860] @TimeApiInit: 0.1463
[12:25:05.08][d29ef860] INFO[MEMORY]: Memory peak usage: 13.25MB
[12:25:05.08][d29ef860] INFO[TIME]: Time delta: 1612527905.0894
[12:29:04.46][ffc1c5d7]
How to troubleshoot?
Note that I am testing using Google Authenticator to scan the QR code
Thank you.
Best regards
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 05 February 2021 at 6:02am | IP Logged
|
|
|
Hello,
Code:
[12:25:05.08][d29ef860] ApiException |
|
|
Per this documentation page, API exceptions recorded in the logs don't include stack trace as it may be containing sensitive data such as passwords in plain text, so the only thing recorded in the logs is "ApiException" message. And for troubleshooting purposes, you need to enable recording stack trace, that's done by setting LogStackTrace to true in data/settings/config.json configuration file.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 05 February 2021 at 6:06am | IP Logged
|
|
|
Please also note that in v8.5.3, 2FA was largely rewritten, so we recommend to check if you encounter the same issue there too.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 05 February 2021 at 6:12am | IP Logged
|
|
|
Hi Igor,
I don't have anymore APIException and pin is not accepted with only web error "Wrong PIN"
[14:07:58.38][fad666ca] ===== API: TwoFactorAuth::TwoFactorAuthSave
[14:07:58.39][fad666ca] @Time: 0.177
[14:07:58.39][fad666ca] @TimeApiInit: 0.1603
[14:07:58.39][fad666ca] INFO[MEMORY]: Memory peak usage: 13.25MB
[14:07:58.39][fad666ca] INFO[TIME]: Time delta: 1612534078.3974
[14:08:31.54][7c10a04b]
[14:08:31.54][7c10a04b] ===== API: TwoFactorAuth::TwoFactorAuthSave
[14:08:31.55][7c10a04b] @Time: 0.1785
[14:08:31.55][7c10a04b] @TimeApiInit: 0.1623
[14:08:31.55][7c10a04b] INFO[MEMORY]: Memory peak usage: 13.25MB
[14:08:31.55][7c10a04b] INFO[TIME]: Time delta: 1612534111.5581
Note that I enabled LogStackTrace and separate logging
Any advise?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 05 February 2021 at 6:17am | IP Logged
|
|
|
Does it behave the same way on the latest version (8.5.4 at the moment)? Any errors reported in the browser console (F12 key)?
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 05 February 2021 at 7:09am | IP Logged
|
|
|
Sorry, it was a problem of connextion with google
My tests are around the version 8.5.1
Thank you.
|
Back to Top |
|
|