```coffeescript
express = require 'express'
router = express.Router()

router.get '/admin', (req, res) ->
  if req.user
    res.redirect '/admin/cc'
  else
    res.render 'login', error: req.flash 'error'

router.get '/admin/:page?', (req, res) ->
  res.render 'index', error: req.flash 'error'

router.get "/partials/cc", (req, res) ->
  res.render 'partials/contentcontrol', error: req.flash 'error'

router.get "/partials/admin", (req, res) ->
  res.render 'partials/admincontrol', error: req.flash 'error'

module.exports = router
```

Add resetpassword route, fix alert box always being shown on reset password page
user
```coffeescript
express = require 'express'
router = express.Router()


router.get '/resetPassword', (req, res) ->
  if !req.user or !req.user.data.needsReset
    return res.redirect "/"
  res.render 'resetpassword',
    error: req.flash 'error'
    username: req.user.data.username

router.use (req, res, next) ->
  if req.user and req.user.data.needsReset
    res.redirect '/resetPassword'
  else
    next()

router.get '/admin', (req, res) ->
  if req.user
    res.redirect '/admin/cc'
  else
    res.render 'login', error: req.flash 'error'

router.get '/admin/:page?', (req, res) ->
  res.render 'index', error: req.flash 'error'

router.get "/partials/cc", (req, res) ->
  res.render 'partials/contentcontrol', error: req.flash 'error'

router.get "/partials/admin", (req, res) ->
  res.render 'partials/admincontrol', error: req.flash 'error'

module.exports = router
```
assistant