Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: 2FA pin not saved Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
wbenkhoud
Groupie
Groupie
Avatar

Joined: 16 July 2019
Location: Tunisia
Online Status: Offline
Posts: 44
Posted: 05 February 2021 at 5:56am | IP Logged Quote wbenkhoud

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 View wbenkhoud's Profile Search for other posts by wbenkhoud
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 5622
Posted: 05 February 2021 at 6:02am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 5622
Posted: 05 February 2021 at 6:06am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
wbenkhoud
Groupie
Groupie
Avatar

Joined: 16 July 2019
Location: Tunisia
Online Status: Offline
Posts: 44
Posted: 05 February 2021 at 6:12am | IP Logged Quote wbenkhoud

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 View wbenkhoud's Profile Search for other posts by wbenkhoud
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 5622
Posted: 05 February 2021 at 6:17am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
wbenkhoud
Groupie
Groupie
Avatar

Joined: 16 July 2019
Location: Tunisia
Online Status: Offline
Posts: 44
Posted: 05 February 2021 at 7:09am | IP Logged Quote wbenkhoud

Sorry, it was a problem of connextion with google

My tests are around the version 8.5.1

Thank you.
Back to Top View wbenkhoud's Profile Search for other posts by wbenkhoud
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide