default password

Hello all, thanks for your work! this project looks great. I'm spinning it up from the base with the migrated db, can't find info on default password for admin, is that a manual push into the db or is there a default or defined method?
K
kapa.ai12d ago
Hi @3ghan. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hello! The default password for the admin user is not explicitly mentioned in the provided knowledge sources. However, in Wasp, you can set up admin users by specifying their emails in the ADMIN_EMAILS environment variable in the .env.server file. For example:
ADMIN_EMAILS=my@email.com
ADMIN_EMAILS=my@email.com
After setting this, you can sign up with the specified email and you should have admin access. If you're using the username and password authentication method, you can set the password during the sign-up process. If you're using the email authentication method, you'll receive an email with a link to set your password. Please note that in a production environment, you should set up an email sender for the email authentication method to work properly. For more detailed information, you might want to check the official Wasp documentation (https://wasp-lang.dev/docs). If you're still having trouble, could you please provide more details about your setup and the exact steps you're following? ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @3ghan, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
G
3ghan12d ago
"If you're using the username and password authentication method, you can set the password during the sign-up process." Tried this and doesn't seem to work, I'm going to start on a fresh install and see if that works. If anybody else comes across this issue, pretty sure it's the data shaping, so I would recommend choosing your auth method before building your database out.
VW
Vinny (@Wasp)12d ago
hey there. Are you referring to Open SaaS? if you want to change a user to admin for open saas, you need to set the ADMIN_EMAILS env var before you sign up with that email. or if you've already signed up, you can run (in a seperate terminal) wasp db studio, find the user, and change isAdmin to true
VW
Vinny (@Wasp)12d ago
I've gone ahead and updated the docs to add these instructions to the Admin Dashboard and User Overview sections: https://docs.opensaas.sh/general/admin-dashboard/#permissions thanks for making us aware 🙂
OpenSaaS.sh
Admin Dashboard
Open SaaS is a free, open-source, full-stack SaaS starter kit for React + NodeJS.
VW
Vinny (@Wasp)12d ago
If that wasn't your issue, please let us know and we'll continue to help :godfatherboi:
G
3ghan12d ago
Hey thanks! sorry yes opensaas, I just needed to dig into the db studio/prisma config. Fantastic project, great work loving it. for indi devs in the ai space it's huge to be able to spin up Next with auth and tools fast.
M
martinsos11d ago
Hah not Next though :)!
G
3ghan10d ago
ahahaha right. THANKS! nice to be free of next for a minute on the topic of Auth and DB seed, I think the docs would benifit from a short prisma sentance around " 2. Run the development database (and leave it running): wasp db start" Even just changing this to 'build the development database from main.wasp config" would make it more clear that prisma isn't going to rebulid that database shape, right? once you hit that db start your auth method is locked in right? RTFM gets complicated with large stacks 🙂
M
martinsos8d ago
Hm good question: so wasp db start will run the development database and that is it really -> it won't do anything Wasp specific, like infusing it with information from main.wasp or with prisma schema. So it actually won't build the dev db from main.wasp config. What does apply the stuff from main.wasp (Prisma stuff) is the wasp db migrate-dev command, which makes sure schema in the db is in sync with the Prisma schema. Also, each time you run wasp db start, it continues from where it stopped. Does this help? HOw would you update docs to relfect this?
G
3ghan6d ago
ha ya, clever. so, in practical dev process, some, as myself, will spin up several versions to test features atomically. wasp handles this very poorly? not sure where the issue arises but where I've gotten to so far is: docker volume ls | grep wasp-dev-db shows many volumes, if you manually kill a db, (prisma?) cache does not update, so you env updates to new db url but all wasp db commands will fail with: 'database "OpenSaaS-ff8c20a255" does not exist' I went with wasp uninstall reinstall, I'll document and file the issue on the repo once I've narrowed it down a bit. But you guys might wanna be aware of it as it's a full stop for some devs because that cache is hidden (somewhere in prisma land I'd guess), and so requires full debug (no search and fix)
M
miho6d ago
Wasp hashes the path to the app and uses that in the volume name, so it shouldn't be a problem to hace multiple projects on one computer. But you can't run multiple dev DBs at once!
M
martinsos5d ago
@3ghan ok that is interesting, I am not sure I am catching all the details though, and would love to. So ok, we create a db with different name for each projects, even if it is all copies of the same project, that is how we make sure they don't mix up. So that should be great. Btw what do you mean that you spin up several versions to test features atomatically? Several versions of what? How does that allow you to test features atomically? Could you maybe provide me with more details here, ideally some kind of an example use case? Hm I am not sure if Prisma is caching something in a way that could be troublesome. You mentioned all wasp db commands will fail with: . In which context? You have your wasp app on the disk, and you are in there, and you run wasp db migrate-dev for example I guess, and you get this error? Do you have wasp db start running in parallel? As Miho said, you can't run multiple dev dbs at once because they are all using the same port: 5432. But you should have gotten an error regarding that from the second wasp db start that you tried to run hm.
Want results from more Discord servers?
Add your server
More Posts
How does the Wasp compiler work?How does the Wasp compiler work? Do I still need the internet when using it?How can I use WASP on Windows?How can I use WASP on Windows?Disable google authHow to disable google auth in an existing wasp project that uses google auth?Error when trying to login with google oauthI recently migrated my codebase from 0.12.4 to 0.13.0 and I'm now having issues when I attempt to loPassword Reset token invalidationHey, could it be that a password token can be reused once it is used? Tried it 3 times with the sameMails not being sent (Mailgun and Sendgrid tested => both haven't even got an API request)Hey, I have setup my main.wasp with my email I have registered and set the APIKey - for password resuiWhich ui component library works well with waspRunning the backend as a regular node.js app?Hi, I'm wondering if it's possible to run the backend as a regular node.js application like 'npm staWhere to startIm a UI designer dabbling in trying to create my first app w/ GitHub code pilot as I’m not a developrunning wasp inside google idx errorI am trying to setup the dev environment test out opensaas with google online ide idx, but when I trApp crashed for unknowing reasonHey, I start the app when it's still v-0.12.0, it works fine till today, nothing changed on my end btrying to run wasp.sh server on dockerHey guys, so I tried dockerising wasp-sh after I saw it on your recent reddit post. 1. I created aConfused about [Client ]HMR[Wasp 0.13.0, MacOs] Hey guys, I am trying to update wasp header/nav bar to a new style with framerIssue with deploying my wasp app to fly.ioI'm trying to deploy my wasp app to fly.io, but I'm encountering an error that doesn't make sense. Whas anyone got shadcn to work with wasp? I am trying but keep getting an errorAttached is the error I am currently getting. Just wondering if anyone has had success with it?"wasp start db" takes too much time.Any solution for this? i seem to be stuck in a loop and i can't do "Wasp start" until this resolves.Best Practices for Implementing Auth System in Chrome Extension Connected to OpenSaaSHello, everyone! I'm currently developing a SaaS product and have created a Chrome extension. I'm aCompile / Parse error with the ToDoApHello all , I just downloaded and installed Wasp on Windows 11 with WSL2. The installation wenPossibility to disable wasp reload on UI file changes?Hey my dudes, is it possible to calm down this guy on the screenshot from reloading everything everyWhat's the best way to start with Wasp?I'm looking for the best way to start with learning Wasp.