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: 2022/02/10 13:34 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.