Hi all, I add the changepassword plugin from the link below to my Roundcube installation: http://wheaties.us/blog/2008/12/21/change-password-roundcube/
I need to logout after user change his password, so he can re-login with the new one. I want to show an alert popup, and when the user clicks the "OK" button, it will be redirected to the logout page. I tried to add this line to the "app.js" file:
case 'save_changepasswd': if (changepasswd_check_input()) { this.gui_objects.editform.submit(); ---> alert(this.get_label('passwdconfirm')); <--- ---> this.switch_task("logout"); <--- } break;
This actually works only when user inserts old and new password correctly. But if the user inserts a wrong old password, the alert popup fires anyway, because this script is called before testing submitted values with the db ones. My questions is: where can I insert the above commands to get the right behaviour?
Thanks in advance. _______________________________________________ List info: http://lists.roundcube.net/users/