Sign up and verify your email

A new user fills in the sign-up form and gets a verification email while a "Check your inbox" page waits, with a Resend button. The link is valid for 24 hours and can be opened later or on another device; a link opened too late shows a Link expired page that sends a new one. An email that already has an account goes to sign in, on an arrow flagged for a security review.

11 screens and steps12 arrows0 warnings

What UJN shows here Point at a note to see its part of the drawing

Sign up and verify your email  SIGNUP_VERIFYCreate an account and confirm the email by link, on this device or anotherStart From the home pageStartFrom the home pageCreate account (View) Name, email and password Route: /signupViewCreate accountName, email and password/signupSign up with work SSO (Journey) Journey: SSO_SIGNUP Inherited flags: future (planned for a later release)JourneySign up with work SSOSSO_SIGNUP»Sign in (Journey) Journey: SIGNINJourneySign inSIGNINSend verification link (Message) Account saved, not verified Channel: emailMessageSend verification linkAccount saved, not verifiedemailCheck your inbox (Waiting) Resend after 60 s Route: /signup/check-emailWaitingCheck your inboxResend after 60 s/signup/check-emailVerification link (Handoff, returns) The user opens their inbox Channel: email Timeout: 24 h Resume: /verify/:tokenHandoff, returnsVerification linkThe user opens their inboxemail · 24 hLink expired (View) Opened after 24 h; works on any device Route: /verify/expiredViewLink expiredOpened after 24 h; works on any device/verify/expiredStart, handoff return Later, or on another device Route: /verify/:tokenStart, handoff returnLater, or on another deviceEmail verified (View) Set up your profile Route: /welcomeViewEmail verifiedSet up your profile/welcomeEnd, success Account activeEnd, successAccount activeNo label Navigation from from_home to Create accountCreate account · new email Navigation from Create account to Send verification link Payload: {name, email, password}Create account · new email{name, email, password}No label Navigation from Send verification link to Check your inboxResend Navigation from Check your inbox to Send verification linkResendOpen inbox Navigation from Check your inbox to Verification linkOpen inboxOpen link · expired Return, resume from Verification link to Link expiredOpen link · expiredOpen link · valid Return, resume from Verification link to link_openedOpen link · validSend a new link Navigation from Link expired to Send verification linkSend a new linkNo label Navigation from link_opened to Email verifiedUse work SSO Navigation from Create account to Sign up with work SSO Flags: future (planned for a later release)Use work SSO»Create account · already registered Navigation from Create account to Sign in Payload: {email} Flags: security (needs a security control or review)Create account · already registered◆{email}Continue Navigation from Email verified to doneContinue
The source (31 lines)
signup-verify.puml
@startujnrender { direction: down; arrow_spacing: 24 }journey SIGNUP_VERIFY "Sign up and verify your email"description: "Create an account and confirm the email by link, on this device or another"unique_id_friendly: signup_verify start from_home { description: "From the home page" }view signup { title: "Create account"; description: "Name, email and password"; route: /signup }ref sso { journey: SSO_SIGNUP; title: "Sign up with work SSO" }ref signin { journey: SIGNIN; title: "Sign in" }action send_link { type: message; title: "Send verification link"; description: "Account saved, not verified"; channel: email }view check_inbox { type: waiting; title: "Check your inbox"; description: "Resend after 60 s"; route: /signup/check-email }handoff inbox { title: "Verification link"; description: "The user opens their inbox"; channel: email; timeout: 24 h; resume: /verify/:token }view link_expired { title: "Link expired"; description: "Opened after 24 h; works on any device"; route: /verify/expired }start link_opened { type: handoff-return; description: "Later, or on another device"; route: /verify/:token }view verified { title: "Email verified"; description: "Set up your profile"; route: /welcome }end done { type: success; description: "Account active" } from_home --> signupsignup -left-> sso : [Use work SSO] { flags: [future] }signup -right-> signin : [Create account] already registered { payload: [email]; flags: [security] }signup --> send_link : [Create account] new email { payload: [name, email, password] }send_link --> check_inboxcheck_inbox -up-> send_link : [Resend]check_inbox --> inbox : [Open inbox]inbox ..> link_expired : [Open link] expiredinbox ..> link_opened : [Open link] validlink_expired -up-> send_link : [Send a new link]link_opened --> verifiedverified -right-> done : [Continue]@endujn