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 #12

Open
Swoozeki opened this issue Mar 9, 2018 · 1 comment
Open

Login #12

Swoozeki opened this issue Mar 9, 2018 · 1 comment
Labels
MVP user stories that define our minimum viable product

Comments

@Swoozeki
Copy link
Contributor

Swoozeki commented Mar 9, 2018

As a user:
I can log in to the website to view my lunches and other account information

View:
The login button is placed at the top sticky bar. A register form takes its place when user scrolls past the jumbotron

Implementation:

  • User clicks on the login button
  • User is redirected to the login page containing the following form fields:
    • email address - required
    • password - required
    • remember me checkbox
      • when checked, the email and password will be remember until it is unchecked again
  • There is a ‘forgot?’ link that opens a popup modal for resetting password with their e-mail
  • A red dot appears beside the field label if any required field(s) is missing
  • A warning message appears above the form if either field is invalid
@Swoozeki Swoozeki added the MVP user stories that define our minimum viable product label Mar 12, 2018
@Swoozeki
Copy link
Contributor Author

Swoozeki commented Mar 22, 2018

Implementation Continued:

  • The client sends an AJAX POST request to the server with the form fields
  • Upon receiving the data, the server processes and sends back a response
    • If successful, the server sends an object with logged in user's information
    • If failure, the server sends an error object with error status and message
  • Client receives response
    • If response contains an error object, the client displays the error messages to the user
    • If not, user is redirected to the lunch page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MVP user stories that define our minimum viable product
Projects
None yet
Development

No branches or pull requests

1 participant