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
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
| Shape | Symbol | Connections |
|---|---|---|
| Start | Terminator | → Enter ID and password |
| Enter ID and password | Input/output | → Registered ID? · ← Start, Five or more failures? |
| Registered ID? | Decision | → Suggest sign-up(no), Password correct?(yes) · ← Enter ID and password |
| Suggest sign-up | Process | → End · ← Registered ID? |
| End | Terminator | ← Suggest sign-up, Signed in, Lock the account |
| Password correct? | Decision | → Signed in(yes), Add 1 to failures(no) · ← Registered ID? |
| Signed in | Process | → End · ← Password correct? |
| Add 1 to failures | Process | → 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 account | Process | → End · ← Five or more failures? |
Symbols used here
| Symbol | Meaning |
|---|---|
| Terminator | Where the flow starts or ends; a rounded rectangle. |
| Process | One action such as a calculation; a rectangle. |
| Decision | A question whose answer picks the next path; a diamond. |
| Input/output | Data comes in or goes out; a parallelogram. |
| Flow line | The order of steps, in the arrow direction. |
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