docs: 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;
  }