code: function renderLoginRegister(req, res) {
      var root = sandbox.helpers.url('', true, req.secure);
  
      if (req.subdomain) {
        root = root.replace('://', '://' + req.subdomain + '.');
      }
  
      if (req.session.user) {
        return res.redirect(root);
      }
  
      if (req.query.firsttime) {
        res.flash(
          req.flash.NOTIFICATION,
          'We\'ve <a target="_blank" href="/blog/ssl"><strong>upgraded our login process to use SSL</strong></a>, however, this does mean  you have been logged out today, so please could you log in again below.<br><br><a href="http://github.com/jsbin/jsbin/issues/new" target="_blank">Questions/problems?</a>'
        );
      }
  
      // TODO: I wish this were simpler, and automatically gave us the next flash
      // message (and perhaps handled the whole thing for us...)
      var info = req.flash(req.flash.INFO),
        error = req.flash(req.flash.ERROR),
        notification = req.flash(req.flash.NOTIFICATION);
  
      var flash = error || notification || info;
      var production =
        req.cookies && req.cookies.debug ? false : sandbox.helpers.production;
  
      res.render('register-login', {
        flash: flash,
        token: req.csrfToken(),
        layout: 'sub/layout.html',
        referrer: req.flash(req.flash.REFERER) || req.get('referer'),
        root: root,
        static: sandbox.helpers.urlForStatic('', req.secure),
        show: req.url.indexOf('/register') !== -1 ? 'register' : 'login',
        forgotten: !!req.query.forgotten || !!undefsafe(req, 'body.forgotten'),
        email: req.query.email || undefsafe(req, 'body.email'),
      });
    }
docs: Login/Create account.