'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

/* global btoa */

exports.default = function (data) {
  // base64 encode password and delete confirmPassword.

  var password = data.getIn(['ns3:accounts_common', 'password']);
  var encodedPassword = btoa(password);

  return data.setIn(['ns3:accounts_common', 'password'], encodedPassword).deleteIn(['ns3:accounts_common', 'confirmPassword']);
};