code: function cmd_confirm(args, done) {
      var seneca = this
      var why
      var userent = seneca.make(user_canon)
  
      userent.load$({ confirmcode: args.code }, function(err, user) {
        if (err) return done(err)
  
        if (user) {
          if (user.active) {
            user.confirmed = true
            user.save$(function(err, user) {
              if (err) return done(err)
              done(null, { ok: true, user: user })
            })
          } else {
            seneca.log.debug(
              'confirm/fail',
              (why = 'not-active'),
              args.code,
              user
            )
            return done(null, { ok: false, why: why, user: user })
          }
        } else {
          seneca.log.debug(
            'confirm/fail',
            (why = 'invalid-code'),
            args.code,
            user
          )
          return done(null, { ok: false, why: why })
        }
      })
    }
docs: Confirm an existing user - using confirm code sent to user - nick, email: to resolve user - code: confirmcode Provides: - success: {ok:true,user:} - failure: {ok:false,why:,nick:}