Challenge: Adding Authentication

Practice how to add authentication in a Deno application.

We'll cover the following

Below, you are provided with an initial code. Implement the following tasks in it.

Task 1

We have created a login logic for you to get the username and password from the user. Your job is to add the logic to check if the password entered by the user is correct or not.

  1. Add a check_Password method in the src/users/controller.ts file.
  2. Make a call to the check_Password method in the login method, and pass the respective parameters.

Get hands-on with 1200+ tech skills courses.