C
C#9mo ago
SoulsReaper

❔ 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!
No description
11 Replies
SoulsReaper
SoulsReaper9mo ago
For reference, I want to customise this view, create a new razor view and customise my registeration process.
Tvde1
Tvde19mo ago
I think you'll have to make it yourself
SoulsReaper
SoulsReaper9mo ago
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?
Iron
Iron9mo ago
You can scaffold the register page to edit it And yes you can use usermanager to add for example phone nr on register
SoulsReaper
SoulsReaper9mo ago
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.
Iron
Iron9mo ago
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.
Iron
Iron9mo ago
No description
Iron
Iron9mo ago
Do that and from there i am sure you will understand
SoulsReaper
SoulsReaper9mo ago
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!
Iron
Iron9mo ago
No worries good luck 🙂
Accord
Accord9mo ago
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.