code: function cmd_change_password(args, done) {
      var seneca = this
      var user = args.user
  
      seneca.act(
        {
          role: role,
          cmd: 'encrypt_password',
          whence: 'change/user=' + user.id + ',' + user.nick,
          password: args.password,
          repeat: args.repeat,
          salt: args.salt
        },
        function(err, out) {
          if (err) {
            return done(err)
          }
          if (!out.ok) {
            return done(null, out)
          }
  
          user.failedLoginCount = 0
          user.salt = out.salt
          user.pass = out.pass
          user.save$(function(err, user) {
            if (err) {
              return done(err)
            }
  
            user = user.data$(false)
            done(null, { ok: true, user: user })
          })
        }
      )
    }
docs: Change password using user's nick or email - nick, email: to resolve user - user: user entity - password: new password - repeat: password repeat, optional Provides: {ok:,user:}