Skip to content

Instantly share code, notes, and snippets.

@jgwhite
Created September 18, 2019 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgwhite/75bb069b784dba6353c0ff5a6bd66b0a to your computer and use it in GitHub Desktop.
Save jgwhite/75bb069b784dba6353c0ff5a6bd66b0a to your computer and use it in GitHub Desktop.
A login flow for NASA in the 1970s
A login flow for NASA in the 1970s
Sign in
Submit correct email and password -> 2FA
Submit correct badge number and password -> 2FA
Submit incorrect email -> Sign in error
Submit incorrect badge number -> Sign in error
Submit incorrect password -> Sign in error
Click forgot -> Forgot
Sign in error
Submit correct email and password -> 2FA
Submit correct badge number and password -> 2FA
Submit incorrect email -> Sign in error
Submit incorrect badge number -> Sign in error
Submit incorrect password -> Sign in error
2FA
Submit correct code word -> Welcome
Submit incorrect code word -> 2FA error
Back -> Sign in
2FA error
Submit correct code word -> Welcome
Submit incorrect code word -> 2FA error
Back -> Sign in
Forgot
Click forgot email -> Forgot email or badge number
Click forgot badge number -> Forgot email or badge number
Click forgot password -> Forgot password
Forgot email or badge number
Forgot password
Submit recognized email -> Check inbox
Submit unrecognized email -> Check inbox
Submit recognized badge number -> Check inbox
Submit unrecognized badge number -> Check inbox
Check inbox
Welcome
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment