Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: displaying correct error message Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
tahunasky
Newbie
Newbie


Joined: 13 July 2011
Location: New Zealand
Online Status: Offline
Posts: 25
Posted: 09 June 2013 at 6:48pm | IP Logged Quote tahunasky


I am writting a plugin (for version 7) for changing passwords in virtual users email database.
Everything is working, except when i check the oldpassword against stored password in database and it is wrong i want to be able to display the message "Current password is not correct." or similar message.

I have tried:

throw new CApiManagerException(Errs::UserManager_AccountOldPasswordNotCorrect);

but i only get the "Can't save new password" message displayed in popup.

Is throw exception above the right way to do it, and if so how. Or is there some other way ?
Back to Top View tahunasky's Profile Search for other posts by tahunasky
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 10 June 2013 at 3:57am | IP Logged Quote Igor

Looks like there's a deeper problem there: the server-side code throws the right exception but it's not recognized properly by client-side code. We'll be releasing a new WebMail Pro update within a few days, and a fix for this will be there. Hope this helps you.

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


Joined: 13 July 2011
Location: New Zealand
Online Status: Offline
Posts: 25
Posted: 10 June 2013 at 4:00am | IP Logged Quote tahunasky

Igor - Thanks for letting me know, I will look out for the update and report back.
Back to Top View tahunasky's Profile Search for other posts by tahunasky
 

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