about reset_password method

21 views
Skip to first unread message

gangadhar kadam

unread,
Feb 14, 2013, 2:04:04 AM2/14/13
to erpnext-dev...@googlegroups.com
Hello All,
   We are using old version . on login page there is link Forger password on clicking it displays popup for Reset Password and asks for email address, after entering email address given in profile and clicking on reset button It displays " sendmail() got an unexpected keyword argument 'message' " i try to check code of login page it call reset_password method  but the doctype name is not specified. from which doctype it is calling reset_password method cal any one explain. 

please go through client script of login page

pscript.show_forgot_password = function(){
    // create dialog
    var d = new Dialog(400, 400, 'Reset Password')
    d.make_body([['HTML','Title','Enter your email id to reset the password'], ['Data','Email Id'], ['Button','Reset']]);

    var callback = function(r,rt) { 
        if(!r.exc) pscript.forgot_dialog.hide();
    }

    d.widgets['Reset'].onclick = function() {
      $c('reset_password', {user: pscript.forgot_dialog.widgets['Email Id'].value}, callback)
    }
    d.show();
    pscript.forgot_dialog = d;


Thank you.

Rushabh Mehta

unread,
Feb 14, 2013, 3:50:36 AM2/14/13
to erpnext-dev...@googlegroups.com
Check handler.py


W: https://erpnext.com
T: @rushabh_mehta

--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/IRzS6kNEO4cJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages