Assignments Security 1

Handing In Assignments

You must hand in by using git

Hand In by git

  • Create an empty repo on bitbucket.org, gitlab.com, or github.com,
  • git push your local repo to the above remote repo.
  • For node assignments please put the line(s)

    node_modules/

    into your .gitignore file.

Send a mail to with:

  • The word 'handin <subjectname>' in the subject line of your mail
  • The url of your repo(s).

Assignment Security 1.0

Create and add an authentication functionality to your "world database project" from last week. This involves

  • Create an appropriate user object and schema in mongoose.
  • Create a login form in the appropriate view.
  • Handle the login in the model.
  • Write the necessary routing.
  • Test it.
  • Describe in a few sentences what it would take to logout. You don't need to code it.

Assignment Security 1.1

In the previous chapter we discussed sanitation of input data. Consider introducing sanitizing the country data entry form. Then implement it in your "world database project."

The consideration entails where to sanitize, how to sinitize, what to sanitize for.