Diagram Desk

Login flowchart

A website sign-in split into two decisions, account lookup and password check, with a lock after five failed tries. Useful when explaining a security requirement.

The diagram

StartEnter ID and passwordRegistered ID?Suggest sign-upEndPassword correct?Signed inAdd 1 to failuresFive or more failures?Lock the accountnoyesyesnoyesno
Flowchart · 10 shapes

Reading it step by step

  • 1. Start at 'Start'.
  • 2. 'Enter ID and password' is an input or output. Next: 'Registered ID?'.
  • 3. Decide 'Registered ID?': if 'no', go to 'Suggest sign-up'; if 'yes', go to 'Password correct?'.
  • 4. 'Suggest sign-up' is a processing step. Next: 'End'.
  • 5. End at 'End'.
  • 6. Decide 'Password correct?': if 'yes', go to 'Signed in'; if 'no', go to 'Add 1 to failures'.
  • 7. 'Signed in' is a processing step. Next: 'End'.
  • 8. 'Add 1 to failures' is a processing step. Next: 'Five or more failures?'.
  • 9. Decide 'Five or more failures?': if 'yes', go to 'Lock the account'; if 'no', go to 'Enter ID and password'.
  • 10. 'Lock the account' is a processing step. Next: 'End'.

Shape by shape

ShapeSymbolConnections
StartTerminator→ Enter ID and password
Enter ID and passwordInput/output→ Registered ID? · ← Start, Five or more failures?
Registered ID?Decision→ Suggest sign-up(no), Password correct?(yes) · ← Enter ID and password
Suggest sign-upProcess→ End · ← Registered ID?
EndTerminator← Suggest sign-up, Signed in, Lock the account
Password correct?Decision→ Signed in(yes), Add 1 to failures(no) · ← Registered ID?
Signed inProcess→ End · ← Password correct?
Add 1 to failuresProcess→ Five or more failures? · ← Password correct?
Five or more failures?Decision→ Lock the account(yes), Enter ID and password(no) · ← Add 1 to failures
Lock the accountProcess→ End · ← Five or more failures?

Symbols used here

SymbolMeaning
TerminatorWhere the flow starts or ends; a rounded rectangle.
ProcessOne action such as a calculation; a rectangle.
DecisionA question whose answer picks the next path; a diamond.
Input/outputData comes in or goes out; a parallelogram.
Flow lineThe order of steps, in the arrow direction.

All flowchart symbols and how to draw

Diagram text

Paste this text into the editor to get the same picture, then change the names to fit your own work.

# Login flowchart
flowchart TD
  s(["Start"])
  a[/"Enter ID and password"/]
  b{"Registered ID?"}
  c["Suggest sign-up"]
  e(["End"])
  d{"Password correct?"}
  g["Signed in"]
  h["Add 1 to failures"]
  i{"Five or more failures?"}
  j["Lock the account"]
  s --> a
  a --> b
  b -->|no| c
  c --> e
  b -->|yes| d
  d -->|yes| g
  g --> e
  d -->|no| h
  h --> i
  i -->|yes| j
  j --> e
  i -->|no| a

More flowchart examples

All SeewolLabs tools