❔ Create a custom register/login razor views for my Blazor identity.
I have Blazor app connected to my db and it works as an identity for both register,login etc, but I want to customise it, I dont want to register with just email and passowrd, I want to add other fields, how to do that? any reference links /tutorials would be great!
11 Replies
For reference, I want to customise this view, create a new razor view and customise my registeration process.
I think you'll have to make it yourself
I know, thats why it's custome, what I ask for is how?
I already have a .razor file and connected as register view, but I have no idea how to proceed, isnt it suppose to be doen through a builtin class like usermanager?
or shall I just handle it with full manual code?
You can scaffold the register page to edit it
And yes you can use usermanager to add for example phone nr on register
Can you link me to a guide how please? I am new to Blazor, I used Scaffold to create my identity context on database(mysql) and it works fine, but I need to customise it.
Basically in your server side right click add and add identity scaffold
After awhile you will get a list of different pages you can check the register page and add it to your project to edit it
Dont forget to save a backup of your project because sometimes this can break alot atleast for me.
Do that and from there i am sure you will understand
I tried it, and I could add more fields for my registeration form! thanks a lot! I will keep testing it for login too.
I made a backup before all that!
No worries good luck 🙂
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.