techx / quill

📝 Registration, for hackathons!
https://medium.com/hackmit-stories/quill-an-open-source-hackathon-registration-system-91f3a06d22a2
GNU Affero General Public License v3.0
443 stars 341 forks source link

accidental deletion of the one and only admin #102

Open kalvinchang opened 5 years ago

pshirlyn commented 5 years ago

The workaround I used was manually changing the admin status of the user: mongo to access command line, then use admin, and db.users.find().pretty() to find the user.

You can update the admin status of this user with db.users.update(); see https://docs.mongodb.com/manual/reference/method/db.collection.update/ for more information.

If someone else has an easier fix, please let me know!

SalahEddineBC commented 5 years ago

you can update any user manually and give him admin privileges from the database directly