Password reset flowchart
Resetting a forgotten password with an emailed code that lasts 10 minutes, and a loop until the new password meets the rules.
The diagram
Reading it step by step
- 1. Start at 'Start'.
- 2. 'Enter account email' is an input or output. Next: 'Email a code'.
- 3. 'Email a code' is a processing step. Next: 'Enter the code'.
- 4. 'Enter the code' is an input or output. Next: 'Correct within 10 min?'.
- 5. Decide 'Correct within 10 min?': if 'no', go to 'Offer a new code'; if 'yes', go to 'Enter new password'.
- 6. 'Offer a new code' is a processing step. Next: 'Email a code'.
- 7. 'Enter new password' is an input or output. Next: '8+ chars with letters and digits?'.
- 8. Decide '8+ chars with letters and digits?': if 'no', go to 'Show the rules'; if 'yes', go to 'Save new password'.
- 9. 'Show the rules' is a processing step. Next: 'Enter new password'.
- 10. 'Save new password' reads or writes the data store. Next: 'End'.
- 11. End at 'End'.
Shape by shape
| Shape | Symbol | Connections |
|---|---|---|
| Start | Terminator | → Enter account email |
| Enter account email | Input/output | → Email a code · ← Start |
| Email a code | Process | → Enter the code · ← Enter account email, Offer a new code |
| Enter the code | Input/output | → Correct within 10 min? · ← Email a code |
| Correct within 10 min? | Decision | → Offer a new code(no), Enter new password(yes) · ← Enter the code |
| Offer a new code | Process | → Email a code · ← Correct within 10 min? |
| Enter new password | Input/output | → 8+ chars with letters and digits? · ← Correct within 10 min?, Show the rules |
| 8+ chars with letters and digits? | Decision | → Show the rules(no), Save new password(yes) · ← Enter new password |
| Show the rules | Process | → Enter new password · ← 8+ chars with letters and digits? |
| Save new password | Stored data | → End · ← 8+ chars with letters and digits? |
| End | Terminator | ← Save new password |
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. |
| Stored data | Reads or writes a database or file; a cylinder. |
| 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.
# Password reset flowchart
flowchart TD
s(["Start"])
a[/"Enter account email"/]
b["Email a code"]
c[/"Enter the code"/]
d{"Correct within 10 min?"}
e["Offer a new code"]
f[/"Enter new password"/]
g{"8+ chars with letters and digits?"}
h["Show the rules"]
i[("Save new password")]
z(["End"])
s --> a
a --> b
b --> c
c --> d
d -->|no| e
e --> b
d -->|yes| f
f --> g
g -->|no| h
h --> f
g -->|yes| i
i --> z