About reset_password method

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.



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-forum+un...@googlegroups.com.

To post to this group, send email to er...@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.

 

 

Check handler.py


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

On 14-Feb-2013, at 12:34 PM, gangadhar kadam <em...@gmail.com> wrote:

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.



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-forum+un…@googlegroups.com.

To post to this group, send email to er…@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.

 

 




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-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.