Hi Auth0 Community,
In Auth0.js v9 reference (Auth0.js v9 Reference), the changePassword is to send user email to reset password and how does the actual changing old password to new password is performed? Thank you
If attempting to set up a password reset functionality, you’ll use the changePassword
method and pass in an “options” object, with a “connection” parameter and an “email” parameter. The user will then receive an email which will contain a link that they can follow to reset their password.
$('.change_password').click(function () {
webAuth.changePassword({
connection: 'db-conn',
email: 'foo@bar.com'
}, function (err, resp) {
if(err){
console.log(err.message);
}else{
console.log(resp);
}
});
});