Skip to content

initial login form implementation

backups requested to merge 20-login-form into main

Created by: mmannings

Thank you for submitting a pull request! Title this pull request with a brief description of what the pull request fixes/improves/changes. Please describe the pull request in detail using the template below.


Vitro-angular GitHub issue:https://github.com/vivo-project/Vitro-angular/issues/20

  • Requires vivo-project/Vitro-angular#[pr-number] (if a REST API PR is required to test this)
  • Other Relevant Links (Mailing list discussion, related pull requests, etc.)

What's new?

Login page with post request to /api/login (for example: http:localhost/vivo/api/login)

How should this be tested?

A description of what steps someone could take to:

  • Go to <vitro_angular_address>/login (default: localhost:4200/login). Or use button "Login".
  • Provide username and password.
  • Press "Login". if everything's fine you'll be redirected to home path ([""]) and you'll see in a console (F12) writings "Login successful". Otherwise, in a console you'll see error with a status code.

Additional Notes:

This PR is too raw, it needs further revisions.

Interested parties

@wwelling @VeljkoMaksimovic

Checklist

This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!

  • [+] My PR is small in size (e.g. less than 1,000 lines of code, not including comments & specs/tests), or I have provided reasons as to why that's not possible.
  • [+] My PR doesn't introduce circular dependencies
  • [+] If my PR includes new, third-party dependencies (in package.json), I've made sure their licenses align with the Vitro-angular License.

Merge request reports