Dotnet

Authentication and Authorization - Login

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

I finished! On to the next chapter

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.