code: function login(that, gameName, user, pwd, res, req) {
      var authorized, token;
      var search, redirectUri;
      var channel;
  
      channel = that.channel;
      authorized = channel.registry.authorize({ id: user, pwd: pwd });
  
      if (authorized) {
          token = createToken(user, channel, that.tokens);
          res.cookie('nodegame_token', token, {
              path: '/',
              httpOnly: true
          });
          redirectUri = gameName + '/';
          search = url.parse(req.url, true).search;
          if (search) redirectUri += search;
          res.redirect(redirectUri);
          return true;
      }
  
      res.send('Wrong user/pwd.');
      return false;
  }
docs: ### login
  
  Checks if an incoming connection is authorized, if so registers it
  
  An authorized connection receives a cookie with signed JSON web token
  and it is redirected to the actual game uri.
  
  A connection that is not authorized simply receives a warning message.
  
  @param {GameRouter} Reference to this GameRouter instance
  @param {string} gameName The name of the game (with basedir, if any)
  @param {string} user The id of the user
  @param {string} pwd The password for the user
  @param {object} req The request object from Express
  @param {object} res The respond object from Express
  
  @return {boolean} TRUE if connection is authorized, FALSE otherwise
  
  @see createToken