Skip to content

Instantly share code, notes, and snippets.

@RoboSparrow
Created August 21, 2017 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RoboSparrow/6b160b9501942940578e6e217d0571af to your computer and use it in GitHub Desktop.
Save RoboSparrow/6b160b9501942940578e6e217d0571af to your computer and use it in GitHub Desktop.
Leaninglocker Mongo tweaks
/**
* Verify a user (bypass email verification)
*/
db.getCollection('users').update({
"_id" : ObjectId("<users:record:_id>")
}, {
"$set": {
"verified": "yes"
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment