Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login Page #6

Open
17 tasks
ishak52 opened this issue Jul 23, 2018 · 0 comments
Open
17 tasks

Login Page #6

ishak52 opened this issue Jul 23, 2018 · 0 comments

Comments

@ishak52
Copy link
Contributor

ishak52 commented Jul 23, 2018

A page where a user can log in to the app

  • front end:
  • login form component
    Acceptance Criteria:
  • page includes 2 input fields user should fill :
    - Email.
    - Password.
  • the page should include a login button.
  • the page should contain the keep me logged in checkbox.
  • backend:
    Acceptance Criteria:
  • DB users schema require to it: email, id, password.

  • Login button will query the database to check the user.

  • If the login is successful a cookie is created and the user is redirected to the homepage.

  • every action must be authenticated.

  • Routes: api/login

    • Get: send the login form to fill.
    • Post : send the login form informaition.
  • Queries:

    • get.
    • check auth.
  • Tests:

    • Queries.
    • Routes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants