import com.mongodb.BasicDBObjectBuilder
import com.mongodb.DBCollection
import java.security.MessageDigest
class UserDocument {
String userName
String passwordHash
Date dateCreated
/**
* Constructor.
* @TODO Look into better hashing algorithms to use instead of MD5.
* @param userName The name of the new user
* @param passwordHash The password after it is hashed.
* @param dateCreated The date when the user is created, defaulting to "now" but can be passed another date