Author |
|
tahunasky Newbie
Joined: 13 July 2011 Location: New Zealand
Online Status: Offline Posts: 25
|
Posted: 09 June 2013 at 6:48pm | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 10 June 2013 at 3:57am | IP Logged
|
|
|
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 |
|
|
tahunasky Newbie
Joined: 13 July 2011 Location: New Zealand
Online Status: Offline Posts: 25
|
Posted: 10 June 2013 at 4:00am | IP Logged
|
|
|
Igor - Thanks for letting me know, I will look out for the update and report back.
|
Back to Top |
|
|