Dotnet

Authentication and Authorization - Login

PRO

I finished! On to the next chapter

Outline

Exercise: Adding Login Request

In the Conduit.Models Project

Add a class called Login.cs with the following Properties
  • Email
    • Type: string
    • Visibility: public
  • Password
    • Type: string
    • Visibility: public
Add the following rules
  • Email
    • Required
    • Valid Email
    • Max Length 50
  • Password
    • Required

Hint: Review the Register class to get an idea of how to implement the rules.