(Resolved)Modification of Signup form
How can i modify the signup page to allow for tier selection when a user is created?
12 Replies
this should have everything you need for customizing the signup flow https://wasp-lang.dev/docs/auth/overview#customizing-the-signup-process
Using Auth | Wasp
Auth is an essential piece of any serious application. Coincidentally, Wasp provides authentication and authorization support out of the box.
Thanks a lot,issue is resolved!
Wohooo @Dimitrios Mastrogiannis, you just became a Waspeteer level 2!
awesome!
quick followup, when asked
should i create a file under src/server
or modify the file under .wasp/out/server/src/auth/providers/local?
never modifty the files under .wasp
that's where Wasp outputs the generated files to. you can reference them if you're curious but modifying them can cause problems
so, yes, create the file anywhere within
src/server
in the example you'll see it's in src/server/auth
if you have modified a file in .wasp
and notice problems that you can't fix, try stopping the dev server and running wasp clean
and then wasp start
again.Thanks a lot for the help, I really appreciate it!
Running everything according to the docs, yields me this error:Server] src/auth/providers/local/signup.ts(10,20): error TS2345: Argument of type '{ username: any; password: any; }' is not assignable to parameter of type 'UserCreateInput'.
[Server] Property 'address' is missing in type '{ username: any; password: any; }' but required in type 'UserCreateInput'.
[Server] [nodemon] app crashed - waiting for file changes before starting...
what does your User entity look like in
main.wasp
?
is it missing the address
property?
the error points you to the problem --> Property 'address' is missing in type '{ username: any; password: any; }'
I had entity User {=psl
id Int @id @default(autoincrement())
username String @unique
password String
submissions Submission[]
address String
psl=}
when i added ? next to String
it got fixed
perfect!
i think this might actually be a bug on our side that's getting fixed in the update coming out by the end of the week
Perfect!