Advertisement
Guest User

Untitled

a guest
Oct 19th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. forgottenPassword = function( email, onSuccess, onError ) {
  2.         jQuery.ajax( {
  3.             url : GS_FORGOT_PASSWORD,
  4.             type : "POST",
  5.             data : '{ "mail" : "'+ email +'" }',
  6.             //data : { "mail" : email },
  7.             success : function( response ) { onSuccess( response ); },
  8.             error : function( response ) { onError( response ); }
  9.         } );
  10.     }
  11.  
  12. forgottenPassword = function( email, onSuccess, onError ) {
  13.         jQuery.ajax( {
  14.             url : GS_FORGOT_PASSWORD,
  15.             type : "POST",
  16.             //data : '{ "mail" : "'+ email +'" }',
  17.             data : { "mail" : email },
  18.             success : function( response ) { onSuccess( response ); },
  19.             error : function( response ) { onError( response ); }
  20.         } );
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement