ita-social-projects / dokazovi-be

The platform for verified medical speakers and their recommendations.
MIT License
13 stars 11 forks source link

As a registered user I want to log in using email and password so that I can get access to my account and to create a material. #29

Closed y-udov closed 2 years ago

y-udov commented 3 years ago

Links with Change request #215

y-udov commented 3 years ago

Assumptions & Constraints:

Preconditions:

  1. User is registered.
  2. User used his email in his account.

Registered user should have possibility to log in using email and password by clicking on "Sign in/Register" (Увійти/Зареєструватися) button in the header and entering correct email and corresponding password to the fields of form in pop-up.

The pop-up contains fields:

image

When user enters password characters should be replaced with asterisks(*).

image

If user enters wrong information:

  1. If user enters wrong email inscription "Неправильний формат email" should appear.
  2. If user enters wrong password: 2.1. If the password contains less than 4 characters inscription "Пароль повинен містити щонайменше 4 символи." should appear. 2.2. If the password contains more than 16 characters inscription "Пароль повинен містити щонайбільше 16 символи." should appear.

image

When user enters the right credentials and clicks on "Sign in" button, or "Enter" button on keyboard, pop-up should disappear and User's photo, first name and second name should be displayed on the right side of the header.

image

Acceptance Criteria:

Out of scope:

  1. To register;
  2. Sing in with: Facebook, Google. The possibility of registrations on the site should be closed for a while. Only pre-registered users could sign in. Show on FE short form for log in according to the mockup. image

AC:

  1. Login field text field accepts 40 symbols Latin alphabet, numbers, special symbols, accept uppercase as lowercase
  2. Password field text field accepts 16 symbols Latin alphabet, numbers, special symbols, uppercase, lowercase
LiliiaV commented 3 years ago

The possibility of registrations on the site should be closed for a while. Only pre-registered users could sign in. Show on FE short form for log in according to the mockup. image

AC:

  1. Login field text field accepts 40 symbols Latin alphabet, numbers, special symbols, accept uppercase as lowercase
  2. Password field text field accepts 16 symbols Latin alphabet, numbers, special symbols, uppercase, lowercase