code: function onConfirmPasswordReset() {
    var code = $('#password-reset-code').val();
    var password = $('#password-reset-password').val();
    auth.confirmPasswordReset(code, password).then(function() {
      alertSuccess('Password has been changed!');
    }, onAuthError);
  }
docs: Confirms the password reset with the code and password supplied by the user.