Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Can’t login after update from 7.5 to 7.6 Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
webdbase2
Valued Community Member
Valued Community Member


Joined: 25 March 2015
Location: Bulgaria
Online Status: Offline
Posts: 81
Posted: 24 July 2015 at 8:02am | IP Logged Quote webdbase2

After I supply the correct credentials the browser returns to the login page. If I supply wrong ones, I get the error message "The username or password you entered is incorrect. (TAG1 NO Invalid login credentials)". I looked in the log file and there were no errors or warnings.
Back to Top View webdbase2's Profile Search for other posts by webdbase2
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6087
Posted: 24 July 2015 at 8:37am | IP Logged Quote Igor

We have a couple of reports regarding that issue already, developers are investigating it now.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
danmeuk
Newbie
Newbie


Joined: 25 July 2015
Online Status: Offline
Posts: 4
Posted: 25 July 2015 at 12:54pm | IP Logged Quote danmeuk

Hi Igor,

On my install with debug logging enabled, it appears to try to query the awm_accounts table looking for my username in the email field (so never returns a result set) - like so:

[19:47:43.00][3905ee44] DB[7] > SELECT `id_acct`, `id_user`, `id_domain`, `id_tenant`, `deleted`, `def_acct`, `mailing_list`, `quota`, `email`, `friendly_nm`, `mail_protocol`, `mail_inc_host`, `mail_inc_port`, `mail_inc_login`, `mail_inc_pass`, `mail_inc_ssl`, `mail_out
_host`, `mail_out_port`, `mail_out_login`, `mail_out_pass`, `mail_out_auth`, `mail_out_ssl`, `hide_in_gab`, `signature`, `signature_type`, `signature_opt`, `custom_fields`, `allow_mail`, `is_password_specified` FROM awm_accounts WHERE `def_acct` = 1 AND `email` = 'USERNAME-IS-HERE'
Back to Top View danmeuk's Profile Search for other posts by danmeuk
 
danmeuk
Newbie
Newbie


Joined: 25 July 2015
Online Status: Offline
Posts: 4
Posted: 25 July 2015 at 1:07pm | IP Logged Quote danmeuk

Hi Igor,

in libraries/afterlogic/common/managers/integrator/manager.php:
in function 'getLogginedUserId':

$oAccount = $oApiUsersManager->getAccountByEmail($aAccountHashTable['login']);

this calls a query that looks for the username in an email field I believe.
(can never return a result set unless username == email which on my setup it does not!)
Back to Top View danmeuk's Profile Search for other posts by danmeuk
 
webdbase2
Valued Community Member
Valued Community Member


Joined: 25 March 2015
Location: Bulgaria
Online Status: Offline
Posts: 81
Posted: 25 July 2015 at 11:34pm | IP Logged Quote webdbase2

I confirm that:
In my log file there are such queries:

Requested URL /webmail76/?/Ajax/
1. DB[1] ... FROM awm_accounts WHERE `def_acct` = 1 AND `email` = 'XXX@yyy.zz'
2. Some IMAP checkings with positive result.

Requested URL /webmail76/
1. DB[1] ... FROM awm_accounts WHERE `def_acct` = 1 AND `email` = 'XXX'
2. DB[4] - DB[7] ... FROM awm_accounts WHERE `def_acct` = 1 AND `email` = 'XXX'
Back to Top View webdbase2's Profile Search for other posts by webdbase2
 
webdbase2
Valued Community Member
Valued Community Member


Joined: 25 March 2015
Location: Bulgaria
Online Status: Offline
Posts: 81
Posted: 26 July 2015 at 4:49am | IP Logged Quote webdbase2

danmeuk wrote:
$oAccount = $oApiUsersManager->getAccountByEmail($aAccountHashTable['login']);

Yes, that's just the problem. I hardcoded my domain name and I was able to login.
Code:
$oAccount = $oApiUsersManager->getAccountByEmail($aAccountHashTable['login'].'@my.domain.com');

My plugins are woking correctly.
Back to Top View webdbase2's Profile Search for other posts by webdbase2
 
danmeuk
Newbie
Newbie


Joined: 25 July 2015
Online Status: Offline
Posts: 4
Posted: 26 July 2015 at 2:42pm | IP Logged Quote danmeuk

cool - not a fix I can use sadly, as my logins are not related to my email addresses in any way (standard unix user mailboxes!) - i'll have to wait for a fix from Afterlogic :-(
Back to Top View danmeuk's Profile Search for other posts by danmeuk
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6087
Posted: 03 August 2015 at 6:46am | IP Logged Quote Igor

We've just released WebMail Pro 7.6.1. Upgrading to it should fix the problem.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
danmeuk
Newbie
Newbie


Joined: 25 July 2015
Online Status: Offline
Posts: 4
Posted: 09 August 2015 at 8:48am | IP Logged Quote danmeuk

Igor wrote:
We've just released WebMail Pro 7.6.1. Upgrading to it should fix the problem.


Hi Igor,

It certainly did - thanks! :)
Back to Top View danmeuk's Profile Search for other posts by danmeuk
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6087
Posted: 10 August 2015 at 3:31am | IP Logged Quote Igor

Great, thank you!

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

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