Created
August 21, 2017 02:06
-
-
Save RoboSparrow/6b160b9501942940578e6e217d0571af to your computer and use it in GitHub Desktop.
Leaninglocker Mongo tweaks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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