top

This is a simple example of how the local auth can be used. Requires MongoDB running on localhost.

Creates a test user of gopher@gophermail.com with the password of Password1

Imports 7 package(s) ΒΆ

  1. labix.org/v2/mgo/bson
  2. code.google.com/p/go.crypto/bcrypt
  3. github.com/go-martini/martini
  4. github.com/martini-contrib/render
  5. github.com/martini-contrib/sessions
  6. github.com/tomsteele/dmv
  7. labix.org/v2/mgo