Orcpub / orcpub

Code for Dungeon Master's Vault Community Edition
https://www.dungeonmastersvault.com/
Eclipse Public License 2.0
212 stars 106 forks source link

Bypass/disable email verification #569

Open gimzmoe opened 2 years ago

gimzmoe commented 2 years ago

Motivation / Use Case I find using any online version to be laggy unenjoyable, I'd like to run a stand-alone in VM but the email verification adds complexity in the setup that is undesirable

Expected Behavior

Bypass/disable email verification for account creation

Other Information

Perhaps this is possible already? are there instructions on how one can inject an authorized user?

denis-dysen commented 1 year ago

Did you ever find a solution to this? I don't want to set up an smtp relay just for this container

SqueeG commented 1 year ago

This is dependent on whether you can access the repl in your VM

If you can, then it's possible to send commands to your DB, yes

denis-dysen commented 1 year ago

I have full access to the underlying files and database, but I am struggling to edit the database. Do you know how I could simply edit it to believe my user is verified?

datdamnzotz commented 1 year ago

You have to have a repl connection to the db, and do something like this https://github.com/Orcpub/orcpub/blob/develop/dev/user.clj#L96C7-L96C13

denis-dysen commented 1 year ago

If someone would be so kind, could you explain how to do this? I have orcpub running in a docker-compose stack

codeGlaze commented 1 year ago

If I remember correctly getting a proper replacement connection through docker is a nightmare... If you're able to, it's much easier to run the project bare on a PC so you can interact directly with it. You'll need JRE8 and use our copy of the "free" (discontinued) datomic because new versions don't run on windows; via a bug they haven't bothered to fix.

We really should move the docker instructions from the top of the README.

Or finagle an admin panel in to just boop these problems away