-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module error & authentication with email #7
Comments
Hi, I think I know why you have this error. There is a misspelling in an import on the server side of the mongo sanitize package. For MongoDB, I do not think it will be problematic, changing the env variable should work perfectly. If it does not work, it is possible that docker is blocking the connection with Atlas. If you encounter a problem I'll check it, it interest me as well. I will add a Github action to check if the build is correct to avoid this sort of mistakes I made. Have a nice day |
Everything works as expected now, just curious.. how would you go about changing login from username to email? I've tried the following:
But keep getting 'Missing Credentials' |
Just in case: in the state of your component you have a typo ":" is missing after "email". Now, if you want to go for email authentication you need a few more changes in addition to what you did already:
After these If you want to completely remove usernames, you will have to change more files because it is used both in the client redux store and API routes if I remember correctly. Do a global search of "username" and check the user redux store it should give you an idea. |
I'm still getting missing credentials after doing all that you had said to do. I even tried clearing the DB and starting fresh by registering a new user, verifying, then trying to login with email... Not sure what could be holding it up. The console states: So is it that maybe it's passing data in the incorrect format? |
Got it!!! After some troubleshooting, the following worked:
|
Great! I am closing the issue. If you have any question open a new one. I am going to test my version again because it should not have worked considering this : https://stackoverflow.com/a/18142000. |
I am trying to get this up and running by using MongoDB atlas but I keep running into errors when running
docker-compose up --build
..I assume by adding the following to MONGO_URI in the docker-compose.yml files it would still work, no?
Maybe its not even related to MongoDB but that's my guess...?
Any ideas?
The text was updated successfully, but these errors were encountered: