User Tools

Site Tools


advocacy:js_reset_email

In xml/common/login.xml, around line 52:


                    <span class='login_text'>
                        <input type='submit' value='Reset My Password' 
onclick='
                            username = prompt("Enter your username");
                            if(!username) return;
                            var req = new 
Request("open-ils.actor:open-ils.actor.user.password.reset.email", 
username);
                            req.callback(
                                function(r) {
                                    status = r.getResultObject();
                                    if(status == 1) {
                                        alert("New password has been 
sent to your email address");
                                    } else {
                                        alert("Unable to reset and email 
your password.  Please see a librarian");
                                    }
                                }
                            );
                            req.send();
                        '/>
                    </span>
advocacy/js_reset_email.txt · Last modified: 2008/02/25 14:15 by erickson

© 2008-2017 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a member of Software Freedom Conservancy.