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

Story: Register new user #9

Open
purrplingcat opened this issue Dec 2, 2017 · 1 comment
Open

Story: Register new user #9

purrplingcat opened this issue Dec 2, 2017 · 1 comment

Comments

@purrplingcat
Copy link
Contributor

purrplingcat commented Dec 2, 2017

Story: Register new user

Legend
U - User
S - Service
TY - ThankYou

Preconditions

Anonymous U visited Web-UI, clicked sign-up

Lead scenario

  1. U landed on sign-up page with sign-up form
  2. U entered data to form:
  • Login
  • Email
  • Password
  • Verify password
  1. U clicked button 'Register'
  2. S created new user account with flag activated=false.
  3. S generated a activation token for that user account and sends activation link includes this token to email address specified in register form. This token saved to activation token storage
  4. User see a thankyou page vith a info: "Thank you to registration! Your account is not active yet. Please check your email and verify your account with an activation link or put actvation token bellow:". After this text is an input box for activation token and link for resend e-mail.

After this proccess is a different scenarios.

Scenario A: Email recieved

  1. U recieved a email with activation link
  2. U clicked to activation link and redirected to Web-UI page
    3.1 If link is valid, then user account was activated. U see thankyou page and now can login.
    3.2 If link is NOT valid, then user see error page. On error page is a text with reason and link for resend activation mail

Scenario B: Email NOT recieved

  1. U did'nt recieve an email.
  2. On registration thankyou page (if U still opened it) can click to resend activation mail
  3. S sends new activation mail with new activation token
  4. User recieved email. Applied scenario: Email recieved
    4.1 If user still not recieved email, this scenario repeats

Scenario C: Email recieved, manualy token enter (Registration TY still open)

  1. U recieved a email with activation link
  2. U clicked to activation link and redirected to Web-UI page
  3. U copied token to clipboard and switched to TY page
  4. U paste token to input box and click 'Activate'
    5.1 U activated - U can login
    5.2 If U can't be activated, then see error page with resend activation email link

Scenario D: Email recieved, manualy token enter (Registration TY closed)

  1. U recieved a email with activation link
  2. U clicked to activation link and redirected to Web-UI page
  3. U copied token to clipboard and navigated to activation page
  4. U paste token to input box and click 'Activate'
    5.1 U activated - U can login
    5.2 If U can't be activated, then see error page with resend activation email link

Scenario E: Try activate account after 24 hours (Can't be activated)

  1. U recieved a email with activation link
  2. U clicked to activation link and redirected to Web-UI page
  3. U copied token to clipboard and navigated to activation page
  4. U copied token to clipboard and navigated to activation page
  5. U paste token to input box and click 'Activate'
  6. User see page with text: "Sorry, this account was expired and can't be activated. Please register again" and link to register form.

Related: #8
Following: #7
Source:

@purrplingcat
Copy link
Contributor Author

Covered lead scenario. Scenarios A-E cover missing.

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

1 participant