Let’s talk about the person who matters the most in our field.
No, it’s not you (though you’re enduringly important to me, dear Coder).
I’m talking about the user.
I want the user to have a good user experience, so I build a model that inherits from AspNetCore’s IdentityUser. By doing this, I inherit a set of robust properties without having to write too much new code.
In my ToonSpace project, I create a model named “ToonUser” and add some custom properties that IdentityUser doesn’t already cover, including:
FirstName LastName DisplayName FullName ImageData ContentType
With these properties appended to my ToonUser, I have the tools I need to allow users to register accounts and interact with my application.
I access the code behind for the “register” view and add properties for First Name and Last Name because those properties are not the default with Identity pages. I also add fields to the View for the user to enter this information.
Now that I have registration pages scaffolded and augmented to fit my ToonUser model, users can register an account on my application.
I hope these letters find you well, dearest Coder.
Until next time, godspeed in your keystrokes.