User Tools

Site Tools


advocacy:js_reset_email

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

advocacy:js_reset_email [2008/02/25 14:15] – created ericksonadvocacy:js_reset_email [2022/02/10 13:34] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +In xml/common/login.xml, around line 52:
  
 +<code>
 +
 +
 +                    <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>
 +
 +</code>

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.