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

USER STORY: Create an account #3

Closed
6 tasks done
SandraBergstrom opened this issue Apr 7, 2023 · 2 comments
Closed
6 tasks done

USER STORY: Create an account #3

SandraBergstrom opened this issue Apr 7, 2023 · 2 comments

Comments

@SandraBergstrom
Copy link
Owner

SandraBergstrom commented Apr 7, 2023

As a user I can create an account so that I can save my recipes

Acceptance Cirteria:

  • Acceptance Criteria 1: Visible button to press "Create and account"
  • Acceptance Criteria 2: Registration form with fields for user name, email address, password, food relation and country.
  • Acceptance Criteria 3: email validation so the user is uniqe. Appropriate error message if not.
  • Acceptance Criteria 4: Re-directed to a Sign in page.
  • Acceptance Criteria 5: validation that all fields are filled in and also max_lenght, min_lenght on name.

Tasks

  • Create a view for the registration form that will handle GET and POST requests.
  • Create a form in Django that includes fields for username, email address, password, food relation and country.
  • Add validation to the form.
  • Extend the User model with a new model to store more data about the user.
  • Redirect the user to log in after successful registration.
  • Flash message to further clarify successful registration.
@SandraBergstrom SandraBergstrom transferred this issue from SandraBergstrom/PP4 Apr 20, 2023
@SandraBergstrom
Copy link
Owner Author

Tasks:

  • done
  • will add food relation and country when model extension of user is done.
  • done
  • will work on this when login/logout is OK
  • Not sure about the redirection to log in is needed. Will check after login/logout is working OK
  • done

@SandraBergstrom
Copy link
Owner Author

Redirect fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant