Testing login and registration

In this chapter, we're going to repeat the login and registration phases we already did for the AuthSample app a short while ago. However, this time, we'll do the login first, since we already have some existing users thanks to the CreateDefaultUsers() method of SeedController.

Launch the WorldCities app in debug mode by hitting F5. Once done, navigate to the login screen and insert the email and password of one of our existing users.

If we didn't change them at the time, the sample values that we used in SeedController should be the following: email: user@email.com and password: MySecr3t$.

If we did everything correctly, we should see a screen like the one shown in the following screenshot:

Right after that, ...

Get ASP.NET Core 3 and Angular 9 - Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.